Skip to content

HostProxy misbehaves with spaces in PATH_INFO #138

@pszalanski

Description

@pszalanski

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions