summaryrefslogtreecommitdiffhomepage
path: root/test/unit/http.py
diff options
context:
space:
mode:
authorAndrei Zeliankou <zelenkov@nginx.com>2021-07-23 15:37:03 +0100
committerAndrei Zeliankou <zelenkov@nginx.com>2021-07-23 15:37:03 +0100
commit960ffc99677b8451a3cc4ea7bc053b3c123e4e1b (patch)
tree84b042193040e7c5990f8ac20cbc9305e562a8f3 /test/unit/http.py
parentf965e358b6ca878ead629dffb2f0df57230995ea (diff)
downloadunit-960ffc99677b8451a3cc4ea7bc053b3c123e4e1b.tar.gz
unit-960ffc99677b8451a3cc4ea7bc053b3c123e4e1b.tar.bz2
Tests: added SNI test without hostname in request.
Diffstat (limited to '')
-rw-r--r--test/unit/http.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/unit/http.py b/test/unit/http.py
index 797b7681..dcfcd232 100644
--- a/test/unit/http.py
+++ b/test/unit/http.py
@@ -45,7 +45,7 @@ class TestHTTP:
sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1)
if 'wrapper' in kwargs:
- server_hostname = headers.get('Host', 'localhost')
+ server_hostname = headers.get('Host', None)
sock = kwargs['wrapper'](sock, server_hostname=server_hostname)
connect_args = addr if sock_type == 'unix' else (addr, port)