Skip to content

Commit 5b7f867

Browse files
committed
Remove Connection: close header for 501 error handling rest
Ralf doesn't know why the "Connection: close" header was added. Was there since the original code to support OPTIONS verb was added. He agrees it can be removed. Enable test for that code path.
1 parent 4eff496 commit 5b7f867

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

test/test_liveserver.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,8 @@ def test_start_page(self):
7070
self.assertTrue(b'Creator' in f.content)
7171

7272

73-
def disable_test_http_options(self):
73+
def test_http_options(self):
7474
""" options returns an unimplemented error for this case."""
75-
'''note this currently triggers an assertion failure in the
76-
python wsgi handler, so disable while investigating'''
7775

7876
# do not send content-type header for options
7977
f = requests.options(self.url_base() + '/',

0 commit comments

Comments
 (0)