Path parameters (url encoded) containing newlines are not processed properly while using {param:path} #2275
Unanswered
apolopeix
asked this question in
Potential Issue
Replies: 2 comments 1 reply
-
Just to narrow down the issue, I tried without using the {id:path} and the URL-encoded parameter is properly handled:
The result:
|
Beta Was this translation helpful? Give feedback.
0 replies
-
New line chars are illegal in the URLs - https://stackoverflow.com/questions/7109143/what-characters-are-valid-in-a-url |
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
-
I am using FastAPI '0.103.1' using starlette '0.27.0' and I found the following issue.
Defining a route with a path like:
I get the following responses:
However, when the request is URL encoded, I get the following error:
Checking the code it looks like the starlette/routing matcher is not able to make it match.
Can someone help me to clarify if it is a bug on scarlette? Or is it something that can be achieved by doing something else?
Beta Was this translation helpful? Give feedback.
All reactions