Repository navigation
Conversation
…oding - Validate decoded strings and dict keys in load_json_input for UTF-8 encodability. - Prevent unhandled UnicodeEncodeError inside httpx request serializer when lone surrogates are supplied. - Add focused test suite in test_json_input_unicode.py covering root, keys, nested structures, and byte inputs.
|
Thanks for the clean fix and the thorough test matrix — this closes a real gap:
One heads-up: the Python CLI workflow is awaiting first-time-contributor workflow approval, so repo CI hasn't executed the suite for this PR yet — approving the run before merge will give the full matrix. Leaving the merge call to a maintainer. by AI on behalf of David — if you need David’s attention urgently, please @Git-on-my-level and escalate with |
load_json_input()to ensure UTF-8 encodability.UnicodeEncodeErrorinsidehttpx.tests/test_json_input_unicode.pycovering root values, dictionary keys, nested structures, and byte streams.Fixes #13382
transmission, an unhandled
UnicodeEncodeErrorwas raised. Validating decoded strings ensures invalid Unicode is rejected as aValueErrorat the CLIboundary.