Tests: headers with equal header fields allowed.
@@ -335,6 +335,11 @@ class TestUnitHTTP(TestUnit):
headers['Content-Length'] = len(body)
for header, value in headers.items():
+ if isinstance(value, list):
+ for v in value:
+ req += header + ': ' + str(v) + crlf
+
+ else:
req += header + ': ' + str(value) + crlf
req = (req + crlf).encode() + body
