mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
manage multiple headers entry. Rather than waiting for the new HTTP
parser apply this patch now. Thanks @taejo for the patch. close #267
This commit is contained in:
parent
f7b14431b9
commit
fef233dd5d
@ -93,6 +93,8 @@ def create(req, sock, client, server, cfg):
|
|||||||
continue
|
continue
|
||||||
|
|
||||||
key = 'HTTP_' + hdr_name.replace('-', '_')
|
key = 'HTTP_' + hdr_name.replace('-', '_')
|
||||||
|
if key in environ:
|
||||||
|
hdr_value = "%s,%s" % (environ[key], hdr_value)
|
||||||
environ[key] = hdr_value
|
environ[key] = hdr_value
|
||||||
|
|
||||||
environ['wsgi.url_scheme'] = url_scheme
|
environ['wsgi.url_scheme'] = url_scheme
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user