diff --git a/libpathod/pathoc.py b/libpathod/pathoc.py index c2abcaeb1..5105decfc 100644 --- a/libpathod/pathoc.py +++ b/libpathod/pathoc.py @@ -26,4 +26,3 @@ class Pathoc(tcp.TCPClient): r.serve(self.wfile) self.wfile.flush() return http.read_response(self.rfile, r.method, None) - diff --git a/libpathod/pathod.py b/libpathod/pathod.py index bc2bf6af8..3d0f73e31 100644 --- a/libpathod/pathod.py +++ b/libpathod/pathod.py @@ -109,7 +109,9 @@ class Pathod(tcp.TCPServer): ) def handle_connection(self, request, client_address): - PathodHandler(request, client_address, self) + h = PathodHandler(request, client_address, self) + h.handle() + h.finish() def add_log(self, d): lock = threading.Lock()