encode / httpx

A next generation HTTP client for Python. 🦋
https://www.python-httpx.org/
BSD 3-Clause "New" or "Revised" License
12.7k stars 811 forks source link

Support IDNA2003 #3229

Open jruere opened 1 week ago

jruere commented 1 week ago

From: https://github.com/encode/httpx/discussions/2586

Accept already encoded domains, and do not attempt to decode them. This way, any IDNA encoding would be accepted, and it's up to the application to decide the policy of what to actually accept.

jruere commented 1 week ago

I don't think the proposed change would help with redirections to IDNA2003 sites.

tomchristie commented 1 week ago

Accept already encoded domains, and do not attempt to decode them.

Yes, this would be the smart policy.