Skip to content
Myr

Merge pull request #314 from dobrovolsky/drop_npn

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

Drop NPN support

authored by Tom Christie · committed by GitHub · parents fa74aaa, d0953d1 · Browse files · 2 files+2 added−3 removed
This commit

State

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

Diff stats

2 files+2 added−3 removed

  • other:+2 added−3 removed

2 files+2 added−3 removed

modified:httpx/concurrency/asyncio.py+2 added-1 removed
66 unmodified lines
67 if ssl_object is None:68 return "HTTP/1.1"6970 ident = ssl_object.selected_alpn_protocol()7172 if ident is None:72 ident = ssl_object.selected_npn_protocol()73 return "HTTP/1.1"7475 return "HTTP/2" if ident == "h2" else "HTTP/1.1"7677 async def read(
211 unmodified lines
modified:httpx/config.py-2 removed
169 unmodified lines
170 context.set_ciphers(DEFAULT_CIPHERS)171172 if ssl.HAS_ALPN:173 context.set_alpn_protocols(http_versions.alpn_identifiers)174 if ssl.HAS_NPN: # pragma: no cover175 context.set_npn_protocols(http_versions.alpn_identifiers)174175 if hasattr(context, "keylog_filename"):176 keylogfile = os.environ.get("SSLKEYLOGFILE")177 if keylogfile and self.trust_env:
157 unmodified lines