Skip to content

Commit

Permalink
manage multiple headers entry. Rather than waiting for the new HTTP
Browse files Browse the repository at this point in the history
parser apply this patch now. Thanks @taejo for the patch. close benoitc#267
  • Loading branch information
benoitc committed Oct 5, 2011
1 parent f7b1443 commit fef233d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion gunicorn/http/wsgi.py
Expand Up @@ -91,8 +91,10 @@ def create(req, sock, client, server, cfg):
elif hdr_name == "CONTENT-LENGTH":
environ['CONTENT_LENGTH'] = hdr_value
continue

key = 'HTTP_' + hdr_name.replace('-', '_')
if key in environ:
hdr_value = "%s,%s" % (environ[key], hdr_value)
environ[key] = hdr_value

environ['wsgi.url_scheme'] = url_scheme
Expand Down

0 comments on commit fef233d

Please sign in to comment.