File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed
src/ServiceManagement/Services/Commands.Utilities/Websites Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change 20
20
using System . Linq ;
21
21
using System . Net ;
22
22
using System . Net . Http ;
23
- using System . Net . Http . Headers ;
24
23
using System . Web ;
25
24
using System . Xml . Linq ;
26
25
using Microsoft . Build . Evaluation ;
@@ -1379,11 +1378,9 @@ private string GetDeploymentBaseOptionsUserAgent()
1379
1378
{
1380
1379
var userAgent = string . Empty ;
1381
1380
var managementClient = this . WebsiteManagementClient as WebSiteManagementClient ;
1382
- var userAgents = managementClient != null ? managementClient . UserAgent : null ;
1383
-
1384
- if ( userAgents != null )
1381
+ if ( managementClient != null && managementClient . UserAgent != null )
1385
1382
{
1386
- foreach ( var agent in userAgents )
1383
+ foreach ( var agent in managementClient . UserAgent )
1387
1384
{
1388
1385
if ( agent != null && agent . Product != null && ! string . IsNullOrEmpty ( agent . Product . Name ) )
1389
1386
{
You can’t perform that action at this time.
0 commit comments