aboutsummaryrefslogtreecommitdiffstats
path: root/libmproxy/protocol2/http.py
diff options
context:
space:
mode:
authorThomas Kriechbaumer <thomas@kriechbaumer.name>2015-08-21 10:26:28 +0200
committerThomas Kriechbaumer <thomas@kriechbaumer.name>2015-08-21 10:26:28 +0200
commit05d26545e4c65e8fd2242142833a40a96ce5fb81 (patch)
tree7a004316b39ba3c791966934bf835a95617209dc /libmproxy/protocol2/http.py
parent55cfd259dc8264ca9bca166b50b0d3dc7ab71451 (diff)
downloadmitmproxy-05d26545e4c65e8fd2242142833a40a96ce5fb81.tar.gz
mitmproxy-05d26545e4c65e8fd2242142833a40a96ce5fb81.tar.bz2
mitmproxy-05d26545e4c65e8fd2242142833a40a96ce5fb81.zip
adapt netlib changes
Diffstat (limited to 'libmproxy/protocol2/http.py')
-rw-r--r--libmproxy/protocol2/http.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/libmproxy/protocol2/http.py b/libmproxy/protocol2/http.py
index a2dfc428..f093f7c5 100644
--- a/libmproxy/protocol2/http.py
+++ b/libmproxy/protocol2/http.py
@@ -37,7 +37,7 @@ class Http1Layer(Layer):
def read_from_server(self, request):
return HTTPResponse.from_protocol(
self.server_protocol,
- request.method,
+ request,
body_size_limit=self.config.body_size_limit,
include_body=False,
)
@@ -80,7 +80,7 @@ class Http2Layer(Layer):
def read_from_server(self, request):
response = HTTPResponse.from_protocol(
self.server_protocol,
- request.method,
+ request,
body_size_limit=self.config.body_size_limit,
include_body=False,
)