From 5aabdc0ae2243606a2990d8ee4ec7afa5c5cf318 Mon Sep 17 00:00:00 2001 From: Anand Chitipothu Date: Thu, 2 Jun 2011 09:22:30 +0530 Subject: [PATCH] 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. --- gunicorn/http/message.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gunicorn/http/message.py b/gunicorn/http/message.py index 6379a05a..e67930a2 100644 --- a/gunicorn/http/message.py +++ b/gunicorn/http/message.py @@ -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: