diff options
author | Aldo Cortesi <aldo@nullcube.com> | 2012-09-26 10:38:47 +1200 |
---|---|---|
committer | Aldo Cortesi <aldo@nullcube.com> | 2012-09-26 10:38:47 +1200 |
commit | a69d60208717db775ca68bbd1cd8a1af76082495 (patch) | |
tree | 2ebc4a62666079d61e2bb30616f5217460612cce /libpathod/rparse.py | |
parent | 0a5d4fbbbb06a4e6c5e6172b353aa878aaa6e0c6 (diff) | |
download | mitmproxy-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.py | 4 |
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 |