Skip to content
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

Double URL encoding of upstream file requests #1

Closed
jaygooby opened this issue Jul 27, 2010 · 1 comment
Closed

Double URL encoding of upstream file requests #1

jaygooby opened this issue Jul 27, 2010 · 1 comment

Comments

@jaygooby
Copy link

When requesting files for zipping, if the url of the requested file is url-encoded, then the mod_zip module double-encodes the URL, resulting in a 404 from the upstream proxy. Here's a request to zip a single file that will fail due to URL encoding:

- - /flv/contains%20space.flv contains space.flv

The error log shows the upstream proxy being asked for /flv/contains%2520space.flv rather than /flv/contains%20space.flv

A simple workaround for this is to not url-encode spaces and use + instead:

- - /flv/contains+space.flv contains space.flv

However, this is only suitable when your files contain alphanumerics and spaces. You'll still probably have issues with characters like &, # etc.

@jaygooby
Copy link
Author

Problem between keyboard and chair - looks like I didn't have the most recent version compiled in to nginx :(

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant