Skip to content

Commit

Permalink
Follow up fix of a compile error
Browse files Browse the repository at this point in the history
  • Loading branch information
alexeyzimarev committed Mar 12, 2023
1 parent 41bff69 commit 620a557
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/RestSharp/RestClient.cs
Expand Up @@ -210,7 +210,7 @@ public partial class RestClient : IRestClient {
static void ConfigureHttpClient(HttpClient httpClient, RestClientOptions options) {
if (options.MaxTimeout > 0) httpClient.Timeout = TimeSpan.FromMilliseconds(options.MaxTimeout);

if (options.UserAgent != null && httpClient.DefaultRequestHeaders.UserAgent.All(x => $"{x.Product?.Name}/{x.Product?.Version}" != Options.UserAgent)) {
if (options.UserAgent != null && httpClient.DefaultRequestHeaders.UserAgent.All(x => $"{x.Product?.Name}/{x.Product?.Version}" != options.UserAgent)) {
httpClient.DefaultRequestHeaders.TryAddWithoutValidation(KnownHeaders.UserAgent, options.UserAgent);
}

Expand Down

0 comments on commit 620a557

Please sign in to comment.