From a3c1f8afc85efaf88125276d495e56d882a7ed43 Mon Sep 17 00:00:00 2001 From: Yeray Diaz Diaz Date: Wed, 6 May 2020 12:17:14 +0100 Subject: [PATCH] Pass http2 flag to proxy dispatch --- httpx/_client.py | 1 + 1 file changed, 1 insertion(+) diff --git a/httpx/_client.py b/httpx/_client.py index df01c3da39..a9fee25397 100644 --- a/httpx/_client.py +++ b/httpx/_client.py @@ -1061,6 +1061,7 @@ def init_proxy_dispatch( ssl_context=ssl_context, max_keepalive=max_keepalive, max_connections=max_connections, + http2=http2, ) def dispatcher_for_url(self, url: URL) -> httpcore.AsyncHTTPTransport: