From 05d26545e4c65e8fd2242142833a40a96ce5fb81 Mon Sep 17 00:00:00 2001 From: Thomas Kriechbaumer Date: Fri, 21 Aug 2015 10:26:28 +0200 Subject: adapt netlib changes --- libmproxy/protocol2/http.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libmproxy/protocol2/http.py') 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, ) -- cgit v1.2.3