aboutsummaryrefslogtreecommitdiffstats
path: root/libpathod/pathoc.py
diff options
context:
space:
mode:
authorMaximilian Hils <git@maximilianhils.com>2014-07-21 14:08:09 +0200
committerMaximilian Hils <git@maximilianhils.com>2014-07-21 14:08:09 +0200
commita0c8b20b7de32d333e72997f518a9159cbea84f6 (patch)
treee20c3e6d5f38d9a72124b4137e01eb2af4121724 /libpathod/pathoc.py
parent9cc83ed9a8fd9bfba45e5f14e7a4b08999bac6b9 (diff)
downloadmitmproxy-a0c8b20b7de32d333e72997f518a9159cbea84f6.tar.gz
mitmproxy-a0c8b20b7de32d333e72997f518a9159cbea84f6.tar.bz2
mitmproxy-a0c8b20b7de32d333e72997f518a9159cbea84f6.zip
adjust to netlib api changes
Diffstat (limited to 'libpathod/pathoc.py')
-rw-r--r--libpathod/pathoc.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/libpathod/pathoc.py b/libpathod/pathoc.py
index 5ccb546b..938dbeba 100644
--- a/libpathod/pathoc.py
+++ b/libpathod/pathoc.py
@@ -82,7 +82,7 @@ class Pathoc(tcp.TCPClient):
r = language.parse_request(self.settings, spec)
language.serve(r, self.wfile, self.settings, self.address.host)
self.wfile.flush()
- ret = list(http.read_response(self.rfile, r.method, None))
+ ret = list(http.read_response(self.rfile, r.method.string(), None))
ret.append(self.sslinfo)
return Response(*ret)
@@ -134,9 +134,9 @@ class Pathoc(tcp.TCPClient):
try:
req = language.serve(r, self.wfile, self.settings, self.address.host)
self.wfile.flush()
- resp = http.read_response(self.rfile, r.method, None)
+ resp = http.read_response(self.rfile, r.method.string(), None)
except http.HttpError, v:
- print >> fp, "<< HTTP Error:", v.msg
+ print >> fp, "<< HTTP Error:", v.message
except tcp.NetLibTimeout:
if ignoretimeout:
return