diff options
-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 |