changeset 6386:2a2da73e1e26

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.
author John Rouillard <rouilj@ieee.org>
date Mon, 26 Apr 2021 11:54:57 -0400
parents 8c43129f29ca
children 0da655d1498d
files test/test_liveserver.py
diffstat 1 files changed, 1 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/test/test_liveserver.py	Wed Apr 21 14:43:58 2021 -0400
+++ b/test/test_liveserver.py	Mon Apr 26 11:54:57 2021 -0400
@@ -70,10 +70,8 @@
         self.assertTrue(b'Creator' in f.content)
 
 
-    def disable_test_http_options(self):
+    def test_http_options(self):
         """ options returns an unimplemented error for this case."""
-        '''note this currently triggers an assertion failure in the
-           python wsgi handler, so disable while investigating'''
         
         # do not send content-type header for options
         f = requests.options(self.url_base() + '/',

Roundup Issue Tracker: http://roundup-tracker.org/