Skip to content

Commit fa635a9

Browse files
committed
prioritize h2
1 parent ae46dfb commit fa635a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

httpcore/_async/http_proxy.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ async def handle_async_request(self, request: Request) -> Response:
304304
if self._ssl_context is None
305305
else self._ssl_context
306306
)
307-
alpn_protocols = ["http/1.1", "h2"] if self._http2 else ["http/1.1"]
307+
alpn_protocols = ["h2", "http/1.1"] if self._http2 else ["http/1.1"]
308308
ssl_context.set_alpn_protocols(alpn_protocols)
309309

310310
kwargs = {

0 commit comments

Comments
 (0)