This repository was archived by the owner on Jan 13, 2021. It is now read-only.
This repository was archived by the owner on Jan 13, 2021. It is now read-only.
HTTP11Connection does not use http/1.1 protocol #424
Open
Description
Sample code
try:
conn = HTTP11Connection('www.cloudflare.com:443', secure=True)
req = conn.request('GET', '/')
rep = conn.get_response() # <-- this will raise TLSUpgrade exception
except Exception as ex:
print(ex.negotiated) # <-- this will print h2
Expected behavior is to use http/1.1 protocol.
Metadata
Metadata
Assignees
Labels
No labels