From 6114f07f76c0f2a99004527eea68ac0a4557f345 Mon Sep 17 00:00:00 2001 From: Maximilian Hils Date: Wed, 3 Sep 2014 17:14:18 +0200 Subject: [PATCH] adapt pathod to netlib changes --- libpathod/pathod.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libpathod/pathod.py b/libpathod/pathod.py index 876fb90e0..150e8799c 100644 --- a/libpathod/pathod.py +++ b/libpathod/pathod.py @@ -185,8 +185,8 @@ class PathodHandler(tcp.BaseHandler): return False, dict(type="error", msg="Access denied: web interface disabled") else: self.info("app: %s %s" % (method, path)) - cc = wsgi.ClientConn(self.address()) - req = wsgi.Request(cc, "http", method, path, headers, content) + req = wsgi.Request("http", method, path, headers, content) + flow = wsgi.Flow(self.address, req) sn = self.connection.getsockname() a = wsgi.WSGIAdaptor( self.server.app, @@ -194,7 +194,7 @@ class PathodHandler(tcp.BaseHandler): self.server.address.port, version.NAMEVERSION ) - a.serve(req, self.wfile) + a.serve(flow, self.wfile) return True, None def _log_bytes(self, header, data, hexdump):