diff options
Diffstat (limited to 'libmproxy/protocol2/http.py')
-rw-r--r-- | libmproxy/protocol2/http.py | 4 |
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, ) |