Skip to content

Commit cd71457

Browse files
authored
Make useragents could be cleaned when cmdlet is successfully executed (#18314)
Without the changes, useragent could still accumulate event the cmdlet is executed successfully.
1 parent 85d0068 commit cd71457

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/Accounts/Authentication/Factories/ClientFactory.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -460,7 +460,6 @@ public DelegatingHandler[] GetCustomHandlers()
460460

461461
public void RemoveUserAgent(string name)
462462
{
463-
name = GetProductInfoHeaderKey(name);
464463
if (_userAgents != null && _userAgents.Keys != null)
465464
{
466465
var agents = _userAgents.Keys.Where((k) => k.Product != null && string.Equals(k.Product.Name, name, StringComparison.OrdinalIgnoreCase));

0 commit comments

Comments
 (0)