fix wsgi env.

This commit is contained in:
benoitc 2010-06-22 13:51:50 +02:00
parent 06a4dc6881
commit 2f06305ce4
2 changed files with 4 additions and 4 deletions

View File

@ -173,9 +173,9 @@ class Request(Message):
else:
self.host = self.host.rsplit(":", 1)[0]
self.port = parts.port
self.path = parts.path or None
self.query = parts.query or None
self.fragment = parts.fragment or None
self.path = parts.path or ""
self.query = parts.query or ""
self.fragment = parts.fragment or ""
# Version
match = self.versre.match(bits[2])

View File

@ -93,7 +93,7 @@ def create(req, sock, client, server, debug=False):
"SERVER_SOFTWARE": SERVER_VERSION,
"REQUEST_METHOD": req.method,
"PATH_INFO": unquote(path_info),
"QUERY_STRING": req.query or '',
"QUERY_STRING": req.query,
"RAW_URI": req.path,
"CONTENT_TYPE": content_type,
"CONTENT_LENGTH": content_length,