Do not close http output stream when responding
This commit is contained in:
parent
56a3cdbbd8
commit
f2e03e878e
1 changed files with 0 additions and 2 deletions
|
@ -78,7 +78,6 @@ class MyHandler(BaseHTTPRequestHandler):
|
|||
'x-plex-device-name, x-plex-platform, x-plex-product, accept, '
|
||||
'x-plex-device, x-plex-device-screen-resolution')
|
||||
self.end_headers()
|
||||
self.wfile.close()
|
||||
|
||||
def sendOK(self):
|
||||
self.send_response(200)
|
||||
|
@ -93,7 +92,6 @@ class MyHandler(BaseHTTPRequestHandler):
|
|||
self.send_header('Connection', "close")
|
||||
self.end_headers()
|
||||
self.wfile.write(body.encode('utf-8'))
|
||||
self.wfile.close()
|
||||
except Exception:
|
||||
pass
|
||||
|
||||
|
|
Loading…
Reference in a new issue