Commit 79feea59 authored by Denis Bilenko's avatar Denis Bilenko

wsgi_test.py: check that each header is sent once in read_headers()

parent 232f881f
......@@ -111,6 +111,8 @@ def read_headers(fd):
except:
print 'Failed to split: %r' % (line, )
raise
key = key.lower()
assert key not in headers, 'Header %r is sent more than once' % key
headers[key.lower()] = value
return response_line, headers
......
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