From b0374710e4ef934c2ae9b416e5c981e04ed776ed Mon Sep 17 00:00:00 2001 From: Maximilian Hils Date: Fri, 19 Sep 2014 01:35:36 +0200 Subject: start to fill detailpane --- libmproxy/protocol/http.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'libmproxy/protocol') 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 -- cgit v1.2.3