Skip to content

Commit fc15d10

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. Commit the code not just the test....
1 parent 5b7f867 commit fc15d10

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

roundup/cgi/wsgi_handler.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,8 @@ def __call__(self, environ, start_response):
9898
else:
9999
code = 501
100100
message, explain = BaseHTTPRequestHandler.responses[code]
101-
request.start_response([('Content-Type', 'text/html'),
102-
('Connection', 'close')], code)
101+
request.start_response([('Content-Type', 'text/html')],
102+
code)
103103
request.wfile.write(s2b(DEFAULT_ERROR_MESSAGE % locals()))
104104
return []
105105

0 commit comments

Comments
 (0)