Skip to content
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

@nqbao

Description

@nqbao

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions