aboutsummaryrefslogtreecommitdiffstats
path: root/libpathod/pathoc.py
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@nullcube.com>2012-10-27 17:40:22 +1300
committerAldo Cortesi <aldo@nullcube.com>2012-10-27 17:40:22 +1300
commitac5aacce443f619bce2f31a1c016904da1930510 (patch)
treeabf8992952a958857ea5dd8231520675e0579b63 /libpathod/pathoc.py
parent06864e5a1b61eaa6684dc8b1a6bdc11ae7987720 (diff)
downloadmitmproxy-ac5aacce443f619bce2f31a1c016904da1930510.tar.gz
mitmproxy-ac5aacce443f619bce2f31a1c016904da1930510.tar.bz2
mitmproxy-ac5aacce443f619bce2f31a1c016904da1930510.zip
Remove check argument to serve() methods.
Refactoring means we can now do this without a callback. Also introduce the maximum_length method that estimates the max possible message length.
Diffstat (limited to 'libpathod/pathoc.py')
-rw-r--r--libpathod/pathoc.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/libpathod/pathoc.py b/libpathod/pathoc.py
index 873a989c..df291c59 100644
--- a/libpathod/pathoc.py
+++ b/libpathod/pathoc.py
@@ -22,7 +22,7 @@ class Pathoc(tcp.TCPClient):
language.FileAccessDenied.
"""
r = language.parse_request(self.settings, spec)
- ret = r.serve(self.settings, self.wfile, None, self.host)
+ ret = r.serve(self.settings, self.wfile, self.host)
self.wfile.flush()
return http.read_response(self.rfile, r.method, None)
@@ -68,7 +68,7 @@ class Pathoc(tcp.TCPClient):
if showresp:
self.rfile.start_log()
try:
- req = r.serve(self.settings, self.wfile, None, self.host)
+ req = r.serve(self.settings, self.wfile, self.host)
self.wfile.flush()
resp = http.read_response(self.rfile, r.method, None)
except http.HttpError, v: