From: Jung Sang-jun Date: Wed, 22 Jan 2020 10:50:06 +0000 (+0900) Subject: Fix ProxyMode for code in dispatch/proxy_http (#788) X-Git-Tag: 0.12.0~19 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b1e99a5cf9093e4c812b3895f32622f10fa8f116;p=thirdparty%2Fhttpx.git Fix ProxyMode for code in dispatch/proxy_http (#788) FORWARD_ONLY seems correct --- diff --git a/httpx/config.py b/httpx/config.py index 99f9538d..64c3c330 100644 --- a/httpx/config.py +++ b/httpx/config.py @@ -323,7 +323,7 @@ class Proxy: if url.scheme not in ("http", "https"): raise ValueError(f"Unknown scheme for proxy URL {url!r}") - if mode not in ("DEFAULT", "CONNECT_ONLY", "TUNNEL_ONLY"): + if mode not in ("DEFAULT", "FORWARD_ONLY", "TUNNEL_ONLY"): raise ValueError(f"Unknown proxy mode {mode!r}") if url.username or url.password: