Skip to content

extensions sni_hostname does't work with http proxy #934

Description

@timespace314

Does not work (No TLS SNI sent to endpoint)

proxy = httpcore.HTTPProxy(proxy_url="http://127.0.0.1:9091/")
headers = {"Host": "www.encode.io"}
extensions = {"sni_hostname": "www.encode.io"}
proxy.request("GET", "https://185.199.108.153/",  headers=headers, extensions=extensions)

Works

pool = httpcore.ConnectionPool()
headers = {"Host": "www.encode.io"}
extensions = {"sni_hostname": "www.encode.io"}
pool.request("GET", "https://185.199.108.153/",  headers=headers, extensions=extensions)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions