aboutsummaryrefslogtreecommitdiffstats
path: root/libpathod/pathod.py
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@nullcube.com>2012-10-27 14:00:50 +1300
committerAldo Cortesi <aldo@nullcube.com>2012-10-27 14:00:50 +1300
commit06864e5a1b61eaa6684dc8b1a6bdc11ae7987720 (patch)
tree447dcccdec071030ba43153a2b7c85e18647b433 /libpathod/pathod.py
parent6174e46023e798517ac206b7681dd9c7d36b1283 (diff)
downloadmitmproxy-06864e5a1b61eaa6684dc8b1a6bdc11ae7987720.tar.gz
mitmproxy-06864e5a1b61eaa6684dc8b1a6bdc11ae7987720.tar.bz2
mitmproxy-06864e5a1b61eaa6684dc8b1a6bdc11ae7987720.zip
Major refactoring towars separate representation of expressions and request/response service.
Diffstat (limited to 'libpathod/pathod.py')
-rw-r--r--libpathod/pathod.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/libpathod/pathod.py b/libpathod/pathod.py
index d4535d03..e0e30d17 100644
--- a/libpathod/pathod.py
+++ b/libpathod/pathod.py
@@ -209,7 +209,7 @@ class Pathod(tcp.TCPServer):
"""
A policy check that verifies the request size is withing limits.
"""
- if self.sizelimit and req.effective_length(actions) > self.sizelimit:
+ if self.sizelimit and req.effective_length({}, None) > self.sizelimit:
return "Response too large."
if self.nohang and any([i[1] == "pause" for i in actions]):
return "Pauses have been disabled."