diff options
author | Aldo Cortesi <aldo@nullcube.com> | 2012-07-23 15:38:06 +1200 |
---|---|---|
committer | Aldo Cortesi <aldo@nullcube.com> | 2012-07-23 15:38:06 +1200 |
commit | 3027aae142c12b123715e1cb0ecc770f00d27198 (patch) | |
tree | 2b7c7de9989560334cc4eeebfb6d1fbd74f02a6f /libpathod/rparse.py | |
parent | 5283bb250788326ad1722b703148800a66a36adf (diff) | |
download | mitmproxy-3027aae142c12b123715e1cb0ecc770f00d27198.tar.gz mitmproxy-3027aae142c12b123715e1cb0ecc770f00d27198.tar.bz2 mitmproxy-3027aae142c12b123715e1cb0ecc770f00d27198.zip |
Use configured size limit to keep previews in check.
Diffstat (limited to 'libpathod/rparse.py')
-rw-r--r-- | libpathod/rparse.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libpathod/rparse.py b/libpathod/rparse.py index b09010b5..f81bb1ed 100644 --- a/libpathod/rparse.py +++ b/libpathod/rparse.py @@ -708,7 +708,7 @@ class PathodErrorResponse(Response): Response.__init__(self) self.code = 800 self.msg = LiteralGenerator(msg) - self.body = LiteralGenerator(body or msg) + self.body = LiteralGenerator("pathod error: " + (body or msg)) self.headers = [ ( LiteralGenerator("Content-Type"), |