Skip to content

Commit

Permalink
Simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
yaakov-h committed Jan 3, 2019
1 parent 223db10 commit 771c820
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
using System;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Reflection;
using SteamKit2.Discovery;

namespace SteamKit2
Expand Down Expand Up @@ -113,8 +112,8 @@ static HttpClient DefaultHttpClientFactory()
{
var client = new HttpClient();

var assemblyVersion = Assembly.GetExecutingAssembly().GetName().Version.ToString(fieldCount: 3);
client.DefaultRequestHeaders.UserAgent.Add( new ProductInfoHeaderValue( "SteamKit", assemblyVersion ) );
var assemblyVersion = typeof(SteamConfiguration).Assembly.GetName().Version.ToString(fieldCount: 3);
client.DefaultRequestHeaders.UserAgent.Add(new ProductInfoHeaderValue("SteamKit", assemblyVersion));
return client;
}
}
Expand Down

0 comments on commit 771c820

Please sign in to comment.