only allow http/1.1 in ssl

This commit is contained in:
monosans
2025-02-05 06:22:56 +00:00
committed by GitHub
parent c39597f3e8
commit b651757e26
+1
View File
@@ -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):