diff options
author | Andrey Zelenkov <zelenkov@nginx.com> | 2018-02-05 15:39:23 +0300 |
---|---|---|
committer | Andrey Zelenkov <zelenkov@nginx.com> | 2018-02-05 15:39:23 +0300 |
commit | 91dc1303f57ce154725360d374680bd563897cde (patch) | |
tree | 060e517861d5eb24f9f0fbc3b1bb4b22db696d6e /test | |
parent | 0379f927b33f139f9838bb14b1d48e90ee9321ea (diff) | |
download | unit-91dc1303f57ce154725360d374680bd563897cde.tar.gz unit-91dc1303f57ce154725360d374680bd563897cde.tar.bz2 |
Tests: added "Connection: close" header for default requests.
Diffstat (limited to 'test')
-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 c95a1251..bb09338c 100644 --- a/test/unit.py +++ b/test/unit.py @@ -151,7 +151,12 @@ class TestUnitHTTP(TestUnit): port = 7080 if 'port' not in kwargs else kwargs['port'] url = '/' if 'url' not in kwargs else kwargs['url'] http = 'HTTP/1.0' if 'http_10' in kwargs else 'HTTP/1.1' - headers = {'Host': 'localhost'} if 'headers' not in kwargs else kwargs['headers'] + + headers = ({ + 'Host': 'localhost', + 'Connection': 'close' + } if 'headers' not in kwargs else kwargs['headers']) + body = b'' if 'body' not in kwargs else kwargs['body'] crlf = '\r\n' |