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-02-05 11:31:24 -0300
commitd9f562b5c0ba0b4769455c117c1321d63ff6497c (patch)
tree9007a2432450291e60d07b049d6778639b0ccdd1 /libmproxy/protocol/http.py
parent1a06f15ee0423941e906f6fc654094b0fa9a9e3a (diff)
downloadmitmproxy-d9f562b5c0ba0b4769455c117c1321d63ff6497c.tar.gz
mitmproxy-d9f562b5c0ba0b4769455c117c1321d63ff6497c.tar.bz2
mitmproxy-d9f562b5c0ba0b4769455c117c1321d63ff6497c.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 f59b76ad..284731b0 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__(