diff --git a/src/N_m3u8DL-RE.Common/Util/HTTPUtil.cs b/src/N_m3u8DL-RE.Common/Util/HTTPUtil.cs index b48ad60..b26d452 100644 --- a/src/N_m3u8DL-RE.Common/Util/HTTPUtil.cs +++ b/src/N_m3u8DL-RE.Common/Util/HTTPUtil.cs @@ -11,12 +11,15 @@ namespace N_m3u8DL_RE.Common.Util { AllowAutoRedirect = false, AutomaticDecompression = DecompressionMethods.All, - ServerCertificateCustomValidationCallback = (sender, cert, chain, sslPolicyErrors) => true + ServerCertificateCustomValidationCallback = (sender, cert, chain, sslPolicyErrors) => true, + MaxConnectionsPerServer = 1024, }; public static readonly HttpClient AppHttpClient = new(HttpClientHandler) { - Timeout = TimeSpan.FromSeconds(100) + Timeout = TimeSpan.FromSeconds(100), + DefaultRequestVersion = HttpVersion.Version20, + DefaultVersionPolicy = HttpVersionPolicy.RequestVersionOrHigher, }; private static async Task DoGetAsync(string url, Dictionary? headers = null)