From f2e03e878ea261d4aacb642eb326c53478ccbe1b Mon Sep 17 00:00:00 2001 From: croneter Date: Mon, 18 Oct 2021 08:59:56 +0200 Subject: [PATCH] Do not close http output stream when responding --- resources/lib/plexbmchelper/listener.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/resources/lib/plexbmchelper/listener.py b/resources/lib/plexbmchelper/listener.py index 4bf61e10..329b053f 100644 --- a/resources/lib/plexbmchelper/listener.py +++ b/resources/lib/plexbmchelper/listener.py @@ -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