diff --git a/API/MangaDownloadClients/HttpDownloadClient.cs b/API/MangaDownloadClients/HttpDownloadClient.cs index ed9ee9f..cfe1753 100644 --- a/API/MangaDownloadClients/HttpDownloadClient.cs +++ b/API/MangaDownloadClients/HttpDownloadClient.cs @@ -7,13 +7,13 @@ internal class HttpDownloadClient : DownloadClient { private static readonly HttpClient Client = new() { - Timeout = TimeSpan.FromSeconds(10) + Timeout = TimeSpan.FromSeconds(10), + DefaultVersionPolicy = HttpVersionPolicy.RequestVersionOrHigher }; public HttpDownloadClient() { Client.DefaultRequestHeaders.TryAddWithoutValidation("User-Agent", TrangaSettings.userAgent); - Client.DefaultVersionPolicy = HttpVersionPolicy.RequestVersionOrHigher; } internal override RequestResult MakeRequestInternal(string url, string? referrer = null, string? clickButton = null)