benoitc / benoitc/restkit

HostProxy misbehaves with spaces in PATH_INFO

Open
#138 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
404
Forks
70
PR merge metrics
No merged PRs in 30d

Description

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.:

``` python
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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.