diff --git a/browser_cli/client.py b/browser_cli/client.py index 9dca4b5..3bffe7b 100644 --- a/browser_cli/client.py +++ b/browser_cli/client.py @@ -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