Skip to content
Myr

Display proxy protocol scheme on error (#3571)

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

authored by Emmanuel Ferdman · committed by GitHub · parent 6c7af96 · 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/_transports/default.py+1 added-1 removed
353 unmodified lines
354 )355 else: # pragma: no cover356 raise ValueError(357 "Proxy protocol must be either 'http', 'https', 'socks5', or 'socks5h',"358 " but got {proxy.url.scheme!r}."358 f" but got {proxy.url.scheme!r}."359 )360361 async def __aenter__(self: A) -> A: # Use generics for subclass support.362 await self._pool.__aenter__()
44 unmodified lines