-
-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
StaticRoute should unquote filename #1140
Labels
Comments
Agree with the problem but let's postpone the issue to 'after 1.0' times. |
vir-mir
added a commit
to vir-mir/aiohttp
that referenced
this issue
Sep 13, 2016
vir-mir
added a commit
to vir-mir/aiohttp
that referenced
this issue
Sep 13, 2016
vir-mir
added a commit
to vir-mir/aiohttp
that referenced
this issue
Sep 13, 2016
vir-mir
added a commit
to vir-mir/aiohttp
that referenced
this issue
Sep 14, 2016
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Long story short
If I don't have web safe filenames (say I have a directory index), my browser turns "Darby uses the computer.jpg" into "Darby%20uses%20the%20computer.jpg", which StaticRoute will never find on the filesystem.
Expected behaviour
I expect to see
Actual behaviour
I get a 404 instead of a corgi.
Steps to reproduce
Take an existing static route with a working image. Add a space to the image, then add the same space to your url. That's not that helpful, but in the code, this change gets images to load again for me. I can attempt to turn it into a pull request, but not this week.
Your environment
Python 3.5.0+
aiohttp==0.22.5
The text was updated successfully, but these errors were encountered: