mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
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:
parent
17b47a376b
commit
5aabdc0ae2
@ -167,7 +167,7 @@ class Request(Message):
|
|||||||
|
|
||||||
# URI
|
# URI
|
||||||
self.uri = bits[1]
|
self.uri = bits[1]
|
||||||
parts = urlparse.urlparse(bits[1])
|
parts = urlparse.urlsplit(bits[1])
|
||||||
self.scheme = parts.scheme or ''
|
self.scheme = parts.scheme or ''
|
||||||
self.host = parts.netloc or None
|
self.host = parts.netloc or None
|
||||||
if parts.port is None:
|
if parts.port is None:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user