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:
benoitc 2011-10-05 14:16:41 +02:00
parent f7b14431b9
commit fef233dd5d

View File

@ -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