Permalink
Browse files

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.
  • Loading branch information...
anandology committed Jun 2, 2011
1 parent fc300cc commit ccc037b828220e177d264f9751ec6e20b800dd14
Showing with 1 addition and 1 deletion.
  1. +1 −1 gunicorn/http/message.py
View
@@ -167,7 +167,7 @@ def parse_request_line(self, line):
# 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:

0 comments on commit ccc037b

Please sign in to comment.