Skip to content

Commit

Permalink
Version fix
Browse files Browse the repository at this point in the history
  • Loading branch information
huzaifa-msft committed Jun 5, 2024
1 parent fac5485 commit ccc33c2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/AzureExtension/Services/DevBox/AuthService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@ public AuthService(IHttpClientFactory httpClientFactory, IArmTokenService armTok

if (!IsTest())
{
var agentHeader = new ProductInfoHeaderValue(Package.Current.Id.Name, Package.Current.Id.Version.ToString());
var version = Package.Current.Id.Version;
var versionString = version.Build + "." + version.Major + "." + version.Minor + "." + version.Revision;
var agentHeader = new ProductInfoHeaderValue(Package.Current.Id.Name, versionString);
_httpArmClient.DefaultRequestHeaders.UserAgent.Add(agentHeader);
_httpDataClient.DefaultRequestHeaders.UserAgent.Add(agentHeader);
}
Expand Down

0 comments on commit ccc33c2

Please sign in to comment.