Replies: 1 comment
-
Thanks for pointing this out! I've identified a simple fix thanks to fastapi/fastapi/issues/791 (specifically this response by @jules-ch). The necessary fix is to change the API endpoint from
@jules-ch also advises to use a I am finishing implementing this fix now. @emreozcan - I'm honestly amazed that you found this project, let alone used it enough to find a bug. Can I ask how you came across my humble (incomplete 😅) Unicode API? I created it to flex my FastAPI/Python/backend skills on my developer portfolio. Is it useful to you? Any improvements/features you would recommend? |
Beta Was this translation helpful? Give feedback.
-
Steps to reproduce:
/v1/characters/%2F
Expected response:
Result:
It redirects to
/v1/characters
with a307 Temporary Redirect
.Requesting any string that ends with
%2F
results in a 307 that removes the trailing slash./v1/characters/a%2F
gets redirected to/v1/characters/a
. Expected response:Any other string that includes
%2F
results in a 404{"detail": "Not Found"}
.Beta Was this translation helpful? Give feedback.
All reactions