Do not send a Connection: close header
This commit is contained in:
parent
492e235a53
commit
c107eb2ed8
1 changed files with 2 additions and 2 deletions
|
@ -90,8 +90,8 @@ class MyHandler(BaseHTTPRequestHandler):
|
|||
for key in headers:
|
||||
self.send_header(key, headers[key])
|
||||
self.send_header('Content-Length', len(body))
|
||||
self.send_header('Connection', "close")
|
||||
self.end_headers()
|
||||
if body:
|
||||
self.wfile.write(body.encode('utf-8'))
|
||||
except Exception as exc:
|
||||
LOG.debug('Exception encountered while responding: %s', exc)
|
||||
|
|
Loading…
Reference in a new issue