From b651757e2612d05adeb1d2a8dcbe7c3d7db46ccc Mon Sep 17 00:00:00 2001 From: monosans Date: Wed, 5 Feb 2025 06:22:56 +0000 Subject: [PATCH] only allow http/1.1 in ssl --- proxy_scraper_checker/http.py | 1 + 1 file changed, 1 insertion(+) diff --git a/proxy_scraper_checker/http.py b/proxy_scraper_checker/http.py index 760a087..22f0a18 100644 --- a/proxy_scraper_checker/http.py +++ b/proxy_scraper_checker/http.py @@ -21,6 +21,7 @@ HEADERS: MappingProxyType[str, str] = MappingProxyType({ ) }) SSL_CONTEXT = ssl.create_default_context(cafile=certifi.where()) +SSL_CONTEXT.set_alpn_protocols(("http/1.1",)) class NoCharsetHeaderError(Exception):