Preserve semicolons in the path. #215

`urlparse.urlparse` splits the url at semicolons and calls it params. Since
the WSGI doesn't have any special treatment for params, they should be
preserved and passed to the wsgi app. Using `urlparse.urlsplit` to
avoid splitting the params.
This commit is contained in:
Anand Chitipothu 2011-06-02 09:22:30 +05:30 committed by benoitc
parent 17b47a376b
commit 5aabdc0ae2

View File

@ -167,7 +167,7 @@ class Request(Message):
# URI
self.uri = bits[1]
parts = urlparse.urlparse(bits[1])
parts = urlparse.urlsplit(bits[1])
self.scheme = parts.scheme or ''
self.host = parts.netloc or None
if parts.port is None: