aboutsummaryrefslogtreecommitdiffstats
path: root/libmproxy/protocol/http.py
diff options
context:
space:
mode:
authorMarcelo Glezer <mg@tekii.com.ar>2015-01-14 14:45:19 -0300
committerMarcelo Glezer <mg@tekii.com.ar>2015-01-14 14:45:19 -0300
commit6b8fb147d07d75aa81b0d5b5861c3cbbaeec7fbb (patch)
treeee1b26e1d36b9cdd2105d91e55e9dc17cb0faedb /libmproxy/protocol/http.py
parentd49eafad8b51bab837dc74d140aa04ed8c477cbc (diff)
downloadmitmproxy-6b8fb147d07d75aa81b0d5b5861c3cbbaeec7fbb.tar.gz
mitmproxy-6b8fb147d07d75aa81b0d5b5861c3cbbaeec7fbb.tar.bz2
mitmproxy-6b8fb147d07d75aa81b0d5b5861c3cbbaeec7fbb.zip
used get_decoded_content and removed decode call from headers as max suggested
Diffstat (limited to 'libmproxy/protocol/http.py')
-rw-r--r--libmproxy/protocol/http.py10
1 files changed, 0 insertions, 10 deletions
diff --git a/libmproxy/protocol/http.py b/libmproxy/protocol/http.py
index 9846fc5b..50691ea2 100644
--- a/libmproxy/protocol/http.py
+++ b/libmproxy/protocol/http.py
@@ -953,16 +953,6 @@ class HTTPFlow(Flow):
c += self.response.replace(pattern, repl, *args, **kwargs)
return c
- def response_content(self):
- with decoded(self.response):
- s = self.response.content
- return s
-
- def response_headers(self):
- with decoded(self.response):
- s = str(self.response.headers)
- return s
-
class HttpAuthenticationError(Exception):
def __init__(self, auth_headers=None):
super(HttpAuthenticationError, self).__init__(