From 11290062c0ff64b56c86a1782c77c62639721493 Mon Sep 17 00:00:00 2001
From: glax <johanna@bernloehr.eu>
Date: Mon, 16 Jun 2025 00:58:54 +0200
Subject: [PATCH] Fix setting of version policy

---
 API/MangaDownloadClients/HttpDownloadClient.cs | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

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)