Inconsistent uri escaping of Percent (%) in query params in httpx 0.26 #3090
Unanswered
andyjones
asked this question in
Potential Issue
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi! Thanks for httpx!
I'm trying to make a GET request that has a query parameter that may contain symbols like '%' in them (it is a 3rd party api key) and it is no longer escaped in httpx 0.26.
If the parameter includes other special characters then it does get escaped:
Digging in a bit further with other combos:
httpx 0.26: fails the tests for
{"key": "%"}
and{"key": "%P"}
httpx 0.25: all tests pass
httpx 0.24: fails the test for
{"key": "/"}
I'm guessing the change of behaviour is related to #2990
Is this expected behaviour going forward?
I couldn't see anything in the docs or tests so apologies if I missed it
Beta Was this translation helpful? Give feedback.
All reactions