Commit 48bcc0c1 authored by Denis Bilenko's avatar Denis Bilenko

pywsgi.py: use True instead of 1 for close_connection for consistency

parent 504e84bb
......@@ -313,9 +313,9 @@ class WSGIHandler(object):
if self.request_version == 'HTTP/1.0' and 'Connection' not in self.response_headers_list:
self.response_headers.append(('Connection', 'close'))
self.response_headers_list.append('Connection')
self.close_connection = 1
self.close_connection = True
elif ('Connection', 'close') in self.response_headers:
self.close_connection = 1
self.close_connection = True
if self.code not in [204, 304]:
# the reply will include message-body; make sure we have either Content-Length or chunked
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment