aboutsummaryrefslogtreecommitdiffstats
path: root/libmproxy/protocol/http.py
diff options
context:
space:
mode:
authorMaximilian Hils <git@maximilianhils.com>2015-09-26 17:41:14 +0200
committerMaximilian Hils <git@maximilianhils.com>2015-09-26 17:41:14 +0200
commit1b6ea5caf3ab7c30cc4a822b81ad8288efbae70d (patch)
tree6d295eafd96ee2a39522f1eda3b2ee95e76a1482 /libmproxy/protocol/http.py
parentb13acd7956f2e09bf5f9001f8f55d018a381f6c2 (diff)
downloadmitmproxy-1b6ea5caf3ab7c30cc4a822b81ad8288efbae70d.tar.gz
mitmproxy-1b6ea5caf3ab7c30cc4a822b81ad8288efbae70d.tar.bz2
mitmproxy-1b6ea5caf3ab7c30cc4a822b81ad8288efbae70d.zip
adjust to netlib response changes + docs
Diffstat (limited to 'libmproxy/protocol/http.py')
-rw-r--r--libmproxy/protocol/http.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/libmproxy/protocol/http.py b/libmproxy/protocol/http.py
index 21c2a72c..d4a7622c 100644
--- a/libmproxy/protocol/http.py
+++ b/libmproxy/protocol/http.py
@@ -51,7 +51,7 @@ class _StreamingHttpLayer(_HttpLayer):
def read_response(self, request):
response = self.read_response_headers()
- response.body = b"".join(
+ response.content = b"".join(
self.read_response_body(request, response)
)
return response
@@ -63,10 +63,10 @@ class _StreamingHttpLayer(_HttpLayer):
raise NotImplementedError()
def send_response(self, response):
- if response.body == CONTENT_MISSING:
+ if response.content == CONTENT_MISSING:
raise HttpException("Cannot assemble flow with CONTENT_MISSING")
self.send_response_headers(response)
- self.send_response_body(response, [response.body])
+ self.send_response_body(response, [response.content])
class Http1Layer(_StreamingHttpLayer):