Commit d71ec380 authored by Denis Bilenko's avatar Denis Bilenko

wsgi: fix Issue 40: combine multiple Cookie headers

parent a6311ca5
......@@ -97,7 +97,13 @@ class WSGIHandler(object):
header = header.replace('-', '_').upper()
if header not in ('CONTENT_LENGTH', 'CONTENT_TYPE'):
header = 'HTTP_' + header
env[header] = value
if header in env:
if 'COOKIE' in header:
env[header] += '; ' + value
else:
env[header] += ',' + value
else:
env[header] = value
return env
def handle(self):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment