Skip to content
Myr

Fix ProxyMode for code in dispatch/proxy_http (#788)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

FORWARD_ONLY seems correct

authored by Jung Sang-jun · committed by Tom Christie · parent b234203 · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:httpx/config.py+1 added-1 removed
321 unmodified lines
322 headers = Headers(headers)323324 if url.scheme not in ("http", "https"):325 raise ValueError(f"Unknown scheme for proxy URL {url!r}")326 if mode not in ("DEFAULT", "CONNECT_ONLY", "TUNNEL_ONLY"):326 if mode not in ("DEFAULT", "FORWARD_ONLY", "TUNNEL_ONLY"):327 raise ValueError(f"Unknown proxy mode {mode!r}")328329 if url.username or url.password:330 headers.setdefault(
27 unmodified lines