Tests: headers with equal header fields allowed.
This commit is contained in:
parent
7ce9f61cb6
commit
0e5aaf60d4
1 changed files with 6 additions and 1 deletions
|
@ -335,7 +335,12 @@ class TestUnitHTTP(TestUnit):
|
|||
headers['Content-Length'] = len(body)
|
||||
|
||||
for header, value in headers.items():
|
||||
req += header + ': ' + str(value) + crlf
|
||||
if isinstance(value, list):
|
||||
for v in value:
|
||||
req += header + ': ' + str(v) + crlf
|
||||
|
||||
else:
|
||||
req += header + ': ' + str(value) + crlf
|
||||
|
||||
req = (req + crlf).encode() + body
|
||||
|
||||
|
|
Loading…
Reference in a new issue