diff options
author | Andrei Zeliankou <zelenkov@nginx.com> | 2022-09-07 01:11:04 +0100 |
---|---|---|
committer | Andrei Zeliankou <zelenkov@nginx.com> | 2022-09-07 01:11:04 +0100 |
commit | c65e04682e85cc708b534863ae8f4e069ccccf64 (patch) | |
tree | 34f871e1c6d60da776d67cb0be7425289dae7205 /test/test_access_log.py | |
parent | 9d3b9dba40924229b0c4909b0a4c60d08214501c (diff) | |
download | unit-c65e04682e85cc708b534863ae8f4e069ccccf64.tar.gz unit-c65e04682e85cc708b534863ae8f4e069ccccf64.tar.bz2 |
Tests: minor fixes.
Diffstat (limited to 'test/test_access_log.py')
-rw-r--r-- | test/test_access_log.py | 22 |
1 files changed, 2 insertions, 20 deletions
diff --git a/test/test_access_log.py b/test/test_access_log.py index f7343d21..b1d89343 100644 --- a/test/test_access_log.py +++ b/test/test_access_log.py @@ -36,7 +36,6 @@ class TestAccessLog(TestApplicationPython): headers={ 'Host': 'localhost', 'Connection': 'keep-alive', - 'Content-Type': 'text/html', }, start=True, body='01234', @@ -47,15 +46,7 @@ class TestAccessLog(TestApplicationPython): self.wait_for_record(r'"POST / HTTP/1.1" 200 5') is not None ), 'keepalive 1' - resp = self.post( - headers={ - 'Host': 'localhost', - 'Connection': 'close', - 'Content-Type': 'text/html', - }, - sock=sock, - body='0123456789', - ) + resp = self.post(sock=sock, body='0123456789') assert ( self.wait_for_record(r'"POST / HTTP/1.1" 200 10') is not None @@ -315,16 +306,7 @@ Connection: close self.set_format('$uri $body_bytes_sent') body = '0123456789' * 50 - self.post( - url='/bbs', - headers={ - 'Host': 'localhost', - 'Connection': 'close', - 'Content-Type': 'text/html', - }, - body=body, - read_timeout=1, - ) + self.post(url='/bbs', body=body, read_timeout=1) assert ( self.wait_for_record(r'^\/bbs ' + str(len(body)) + r'$') is not None ), '$body_bytes_sent' |