File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed
src/ServiceManagement/Services/Commands.Utilities/Websites Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -1362,10 +1362,10 @@ private DeploymentBaseOptions CreateRemoteDeploymentBaseOptions(string websiteNa
1362
1362
TempAgent = false
1363
1363
} ;
1364
1364
1365
- var azureSessionUserAgent = GetDeploymentBaseOptionsUserAgent ( ) ;
1366
- if ( ! string . IsNullOrEmpty ( azureSessionUserAgent ) )
1365
+ var userAgent = GetDeploymentBaseOptionsUserAgent ( ) ;
1366
+ if ( ! string . IsNullOrEmpty ( userAgent ) )
1367
1367
{
1368
- remoteBaseOptions . UserAgent = azureSessionUserAgent ;
1368
+ remoteBaseOptions . UserAgent = userAgent ;
1369
1369
}
1370
1370
1371
1371
return remoteBaseOptions ;
@@ -1379,9 +1379,7 @@ private string GetDeploymentBaseOptionsUserAgent()
1379
1379
{
1380
1380
var userAgent = string . Empty ;
1381
1381
var managementClient = this . WebsiteManagementClient as WebSiteManagementClient ;
1382
- var userAgents = AzureSession . ClientFactory . UserAgents . Any ( )
1383
- ? AzureSession . ClientFactory . UserAgents as IEnumerable < ProductInfoHeaderValue >
1384
- : ( managementClient != null ) ? managementClient . UserAgent : null ;
1382
+ var userAgents = managementClient != null ? managementClient . UserAgent : null ;
1385
1383
1386
1384
if ( userAgents != null )
1387
1385
{
You can’t perform that action at this time.
0 commit comments