You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If this is incorrect, please respond with an update. Thank you for your contributions.
Describe the bug
When serving a static file named
a../b.txt
withapp.static()
, the Sanic request handler gives a 400 status code instead of 200.Code snippet
First file is called
main.py
.Then, make the file in question:
And run the server with
python main.py
, followed by a GET request.Expected behavior
The
app.static()
handler should serve theb.txt
file with a 200 response code.Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: