aboutsummaryrefslogtreecommitdiffstats
path: root/libpathod/rparse.py
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@nullcube.com>2012-09-26 10:38:47 +1200
committerAldo Cortesi <aldo@nullcube.com>2012-09-26 10:38:47 +1200
commita69d60208717db775ca68bbd1cd8a1af76082495 (patch)
tree2ebc4a62666079d61e2bb30616f5217460612cce /libpathod/rparse.py
parent0a5d4fbbbb06a4e6c5e6172b353aa878aaa6e0c6 (diff)
downloadmitmproxy-a69d60208717db775ca68bbd1cd8a1af76082495.tar.gz
mitmproxy-a69d60208717db775ca68bbd1cd8a1af76082495.tar.bz2
mitmproxy-a69d60208717db775ca68bbd1cd8a1af76082495.zip
Hex and verbatim output of requests.
This works by sniffing traffic through the socket, so always gives us the exact traffic sent upstream.
Diffstat (limited to 'libpathod/rparse.py')
-rw-r--r--libpathod/rparse.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/libpathod/rparse.py b/libpathod/rparse.py
index 3eaf2569..53878b97 100644
--- a/libpathod/rparse.py
+++ b/libpathod/rparse.py
@@ -653,7 +653,7 @@ class Response(Message):
ShortcutLocation,
Raw
)
- logattrs = ["code", "version"]
+ logattrs = ["code", "version", "body"]
def __init__(self):
Message.__init__(self)
self.code = 200
@@ -691,7 +691,7 @@ class Request(Message):
ShortcutContentType,
Raw
)
- logattrs = ["method", "path"]
+ logattrs = ["method", "path", "body"]
def __init__(self):
Message.__init__(self)
self.method = None