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

HostProxy misbehaves with spaces in PATH_INFO #138

Open
pszalanski opened this issue Dec 1, 2014 · 0 comments
Open

HostProxy misbehaves with spaces in PATH_INFO #138

pszalanski opened this issue Dec 1, 2014 · 0 comments

Comments

@pszalanski
Copy link

As soon as there are spaces in the PATH_INFO variable, the proxy sends two requests instead of one and those requests seem to be completely broken. I could not figure out why exactly it does that but a workaround seems to be to requote PATH_INFO, e.g.:

environ["PATH_INFO"] = urllib.quote(environ["PATH_INFO"])

And this is also what the paste project proxy does: http://svn.pythonpaste.org/Paste/tags/1.4.2/paste/proxy.py in line 91

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