Mercurial > p > roundup > code
diff roundup/cgi/wsgi_handler.py @ 6387:0da655d1498d
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....
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Mon, 26 Apr 2021 12:17:15 -0400 |
| parents | 0343b6fea4b9 |
| children | d32d43e4a5ba |
line wrap: on
line diff
--- a/roundup/cgi/wsgi_handler.py Mon Apr 26 11:54:57 2021 -0400 +++ b/roundup/cgi/wsgi_handler.py Mon Apr 26 12:17:15 2021 -0400 @@ -98,8 +98,8 @@ else: code = 501 message, explain = BaseHTTPRequestHandler.responses[code] - request.start_response([('Content-Type', 'text/html'), - ('Connection', 'close')], code) + request.start_response([('Content-Type', 'text/html')], + code) request.wfile.write(s2b(DEFAULT_ERROR_MESSAGE % locals())) return []
