Skip to content

Commit

Permalink
fix wsgi env.
Browse files Browse the repository at this point in the history
  • Loading branch information
benoitc committed Jun 22, 2010
1 parent 06a4dc6 commit 2f06305
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions gunicorn/http/message.py
Expand Up @@ -173,9 +173,9 @@ def parse_request_line(self, line):
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])
Expand Down
2 changes: 1 addition & 1 deletion gunicorn/http/wsgi.py
Expand Up @@ -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,
Expand Down

0 comments on commit 2f06305

Please sign in to comment.