Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

http/2 not working correctly #3482

Open
ferror56 opened this issue Jan 25, 2025 · 0 comments
Open

http/2 not working correctly #3482

ferror56 opened this issue Jan 25, 2025 · 0 comments

Comments

@ferror56
Copy link

Probably it is related to #3126, but when I according to documentation do:
client = httpx.AsyncClient(http2=True, verify=False)
post_response = await client.post(post_url, headers=post_headers, cookies=post_cookies, data=post_data)
in the logs I see:
DEBUG [2025-01-25 14:02:16] httpx - load_ssl_context verify=False cert=None trust_env=True http2=False

So http2=False from the beginning, why? It was instructed to use http2=true. If I specify http1=False, http2=True the connection is not made succesfully. Curl and web browsers do http2 on the same server successfully.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant