diff options
author | Maximilian Hils <git@maximilianhils.com> | 2014-09-19 01:35:36 +0200 |
---|---|---|
committer | Maximilian Hils <git@maximilianhils.com> | 2014-09-19 01:35:36 +0200 |
commit | b0374710e4ef934c2ae9b416e5c981e04ed776ed (patch) | |
tree | 732772d4cbd11562f728c27370185abaad1f026e /libmproxy/protocol | |
parent | 390a435ac4b5ce78b1aa32b4b048318c5ef0ba03 (diff) | |
download | mitmproxy-b0374710e4ef934c2ae9b416e5c981e04ed776ed.tar.gz mitmproxy-b0374710e4ef934c2ae9b416e5c981e04ed776ed.tar.bz2 mitmproxy-b0374710e4ef934c2ae9b416e5c981e04ed776ed.zip |
start to fill detailpane
Diffstat (limited to 'libmproxy/protocol')
-rw-r--r-- | libmproxy/protocol/http.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libmproxy/protocol/http.py b/libmproxy/protocol/http.py index 9db50cd7..644d4696 100644 --- a/libmproxy/protocol/http.py +++ b/libmproxy/protocol/http.py @@ -108,6 +108,12 @@ class HTTPMessage(stateobject.StateObject): ) _stateobject_long_attributes = {"content"} + def get_state(self, short=False): + ret = super(HTTPMessage, self).get_state(short) + if short: + ret["contentLength"] = len(self.content) + return ret + def get_decoded_content(self): """ Returns the decoded content based on the current Content-Encoding |