set alpn protocol to browser-cli prevent h2/http1.1 ALPN confusion
Testing / test (push) Failing after 14m46s

This commit is contained in:
2026-05-03 12:42:59 +02:00
parent 217641d0ef
commit 7fd966014f
+1
View File
@@ -250,6 +250,7 @@ def _send_remote(endpoint: str, msg: dict, private_key=None) -> bytes | None:
if port == 443:
import ssl
ctx = ssl.create_default_context()
ctx.set_alpn_protocols(["browser-cli"]) # prevent h2/http1.1 ALPN confusion
sock = ctx.wrap_socket(raw_sock, server_hostname=host)
else:
sock = raw_sock