Skip to content

Commit

Permalink
Fix user agent spacing when a custom user agent has been given
Browse files Browse the repository at this point in the history
  • Loading branch information
Archomeda authored Mar 26, 2020
1 parent e5e8903 commit 022d729
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Gw2Sharp/Connection.cs
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ public Connection(
{
this.accessToken = accessToken ?? string.Empty;
this.Locale = locale;
this.UserAgent = $"{userAgent}{(string.IsNullOrWhiteSpace(userAgent) ? " " : "")}" +
this.UserAgent = $"{userAgent}{(!string.IsNullOrWhiteSpace(userAgent) ? " " : "")}" +
$"Gw2Sharp/{typeof(Connection).GetTypeInfo().Assembly.GetName().Version?.ToString(3)} (https://github.com/Archomeda/Gw2Sharp)";
this.httpClient = httpClient ?? new HttpClient();
this.cacheMethod = cacheMethod ?? new MemoryCacheMethod();
Expand Down

0 comments on commit 022d729

Please sign in to comment.