aboutsummaryrefslogtreecommitdiffstats
path: root/test/http/http1/test_read.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/http/http1/test_read.py')
-rw-r--r--test/http/http1/test_read.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/http/http1/test_read.py b/test/http/http1/test_read.py
index a0085db9..84a43f8b 100644
--- a/test/http/http1/test_read.py
+++ b/test/http/http1/test_read.py
@@ -117,6 +117,9 @@ def test_connection_close():
headers["connection"] = "close"
assert connection_close(b"HTTP/1.1", headers)
+ headers["connection"] = "foobar"
+ assert connection_close(b"HTTP/1.0", headers)
+ assert not connection_close(b"HTTP/1.1", headers)
def test_expected_http_body_size():
# Expect: 100-continue