Replies: 1 comment 1 reply
-
This middleware I wrote seems to work, but I'm unsure if always doing unqoute can corrupt the query string
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
First Check
Commit to Help
Example Code
Description
Calling the endpoint with
curl -X GET "http://localhost:8000?param=foo%26other=bar"
results in
{"param":"foo&other=bar"}
instead of{"param":"foo"}
Sometimes I get encoded requests like that to my API and sadly I can't control it. Is there any easy fix?
Operating System
macOS
Operating System Details
No response
FastAPI Version
0.111.0
Pydantic Version
2.7.4
Python Version
3.10.6
Additional Context
No response
Beta Was this translation helpful? Give feedback.
All reactions