diff options
| author | Andrey Zelenkov <zelenkov@nginx.com> | 2019-02-14 16:09:54 +0300 |
|---|---|---|
| committer | Andrey Zelenkov <zelenkov@nginx.com> | 2019-02-14 16:09:54 +0300 |
| commit | 0e5aaf60d4ca2da509a6a73bebe71139f8aae306 (patch) | |
| tree | dd0eef8c21ad5235ac91547976b5beb93fd087ac /test/unit.py | |
| parent | 7ce9f61cb66ddd78e2a6778970cd7c4845c79f00 (diff) | |
| download | unit-0e5aaf60d4ca2da509a6a73bebe71139f8aae306.tar.gz unit-0e5aaf60d4ca2da509a6a73bebe71139f8aae306.tar.bz2 | |
Tests: headers with equal header fields allowed.
Diffstat (limited to 'test/unit.py')
| -rw-r--r-- | test/unit.py | 7 |
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 |
