adjust HttpRequestOptions

This commit is contained in:
xjasonlyu
2022-06-10 13:28:56 +08:00
parent a489f95cfa
commit c7d1b4e911

View File

@@ -52,9 +52,8 @@ public abstract class BaseProvider
return await _httpClient.GetResponse(new HttpRequestOptions
{
Url = url,
EnableDefaultUserAgent = false,
UserAgent = Constant.UserAgent,
CancellationToken = cancellationToken
CancellationToken = cancellationToken,
UserAgent = Constant.UserAgent
}).ConfigureAwait(false);
}
#else