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_tls.py | |
parent | 9d3b9dba40924229b0c4909b0a4c60d08214501c (diff) | |
download | unit-c65e04682e85cc708b534863ae8f4e069ccccf64.tar.gz unit-c65e04682e85cc708b534863ae8f4e069ccccf64.tar.bz2 |
Tests: minor fixes.
Diffstat (limited to 'test/test_tls.py')
-rw-r--r-- | test/test_tls.py | 17 |
1 files changed, 2 insertions, 15 deletions
diff --git a/test/test_tls.py b/test/test_tls.py index 3fa5dabf..d4edcbd3 100644 --- a/test/test_tls.py +++ b/test/test_tls.py @@ -505,7 +505,6 @@ basicConstraints = critical,CA:TRUE""" headers={ 'Host': 'localhost', 'Connection': 'keep-alive', - 'Content-Type': 'text/html', }, start=True, body='0123456789', @@ -518,7 +517,6 @@ basicConstraints = critical,CA:TRUE""" headers={ 'Host': 'localhost', 'Connection': 'close', - 'Content-Type': 'text/html', }, sock=sock, body='0123456789', @@ -570,9 +568,7 @@ basicConstraints = critical,CA:TRUE""" assert 'success' in self.conf_delete('/certificates/default') try: - resp = self.get_ssl( - headers={'Host': 'localhost', 'Connection': 'close'}, sock=sock - ) + resp = self.get_ssl(sock=sock) except KeyboardInterrupt: raise @@ -605,7 +601,6 @@ basicConstraints = critical,CA:TRUE""" headers={ 'Host': 'localhost', 'Connection': 'keep-alive', - 'Content-Type': 'text/html', }, start=True, body='0123456789', @@ -622,15 +617,7 @@ basicConstraints = critical,CA:TRUE""" r' (?!' + app_id + r'#)(\d+)#\d+ "mirror" application started' ) - resp = self.post_ssl( - headers={ - 'Host': 'localhost', - 'Connection': 'close', - 'Content-Type': 'text/html', - }, - sock=sock, - body='0123456789', - ) + resp = self.post_ssl(sock=sock, body='0123456789') assert resp['status'] == 200, 'application respawn status' assert resp['body'] == '0123456789', 'application respawn body' |