mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
fix wsgi env.
This commit is contained in:
parent
06a4dc6881
commit
2f06305ce4
@ -173,9 +173,9 @@ class Request(Message):
|
|||||||
else:
|
else:
|
||||||
self.host = self.host.rsplit(":", 1)[0]
|
self.host = self.host.rsplit(":", 1)[0]
|
||||||
self.port = parts.port
|
self.port = parts.port
|
||||||
self.path = parts.path or None
|
self.path = parts.path or ""
|
||||||
self.query = parts.query or None
|
self.query = parts.query or ""
|
||||||
self.fragment = parts.fragment or None
|
self.fragment = parts.fragment or ""
|
||||||
|
|
||||||
# Version
|
# Version
|
||||||
match = self.versre.match(bits[2])
|
match = self.versre.match(bits[2])
|
||||||
|
|||||||
@ -93,7 +93,7 @@ def create(req, sock, client, server, debug=False):
|
|||||||
"SERVER_SOFTWARE": SERVER_VERSION,
|
"SERVER_SOFTWARE": SERVER_VERSION,
|
||||||
"REQUEST_METHOD": req.method,
|
"REQUEST_METHOD": req.method,
|
||||||
"PATH_INFO": unquote(path_info),
|
"PATH_INFO": unquote(path_info),
|
||||||
"QUERY_STRING": req.query or '',
|
"QUERY_STRING": req.query,
|
||||||
"RAW_URI": req.path,
|
"RAW_URI": req.path,
|
||||||
"CONTENT_TYPE": content_type,
|
"CONTENT_TYPE": content_type,
|
||||||
"CONTENT_LENGTH": content_length,
|
"CONTENT_LENGTH": content_length,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user