summaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorAndrey Zelenkov <zelenkov@nginx.com>2019-02-14 16:09:54 +0300
committerAndrey Zelenkov <zelenkov@nginx.com>2019-02-14 16:09:54 +0300
commit0e5aaf60d4ca2da509a6a73bebe71139f8aae306 (patch)
treedd0eef8c21ad5235ac91547976b5beb93fd087ac /test
parent7ce9f61cb66ddd78e2a6778970cd7c4845c79f00 (diff)
downloadunit-0e5aaf60d4ca2da509a6a73bebe71139f8aae306.tar.gz
unit-0e5aaf60d4ca2da509a6a73bebe71139f8aae306.tar.bz2
Tests: headers with equal header fields allowed.
Diffstat (limited to 'test')
-rw-r--r--test/unit.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/test/unit.py b/test/unit.py
index c0c65d4a..bd6128cc 100644
--- a/test/unit.py
+++ b/test/unit.py
@@ -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