aboutsummaryrefslogtreecommitdiffstats
path: root/libmproxy/protocol/http.py
diff options
context:
space:
mode:
authorMaximilian Hils <git@maximilianhils.com>2015-08-24 18:17:04 +0200
committerMaximilian Hils <git@maximilianhils.com>2015-08-24 18:17:04 +0200
commit56a4bc381efc177c08ed7b9e7c845f74120050e4 (patch)
tree579bebfecc1d4c3012daf1bcd76a10141d82e30f /libmproxy/protocol/http.py
parentf1f34e7713295adb8f54b13ec50d74d43cd42841 (diff)
downloadmitmproxy-56a4bc381efc177c08ed7b9e7c845f74120050e4.tar.gz
mitmproxy-56a4bc381efc177c08ed7b9e7c845f74120050e4.tar.bz2
mitmproxy-56a4bc381efc177c08ed7b9e7c845f74120050e4.zip
request -> request_method
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 1b168569..4472cb2a 100644
--- a/libmproxy/protocol/http.py
+++ b/libmproxy/protocol/http.py
@@ -41,7 +41,7 @@ def send_connect_request(conn, host, port, update_state=True):
protocol = http1.HTTP1Protocol(conn)
conn.send(protocol.assemble(upstream_request))
- resp = HTTPResponse.from_protocol(protocol, upstream_request)
+ resp = HTTPResponse.from_protocol(protocol, upstream_request.method)
if resp.status_code != 200:
raise proxy.ProxyError(resp.status_code,
"Cannot establish SSL " +
@@ -177,7 +177,7 @@ class HTTPHandler(ProtocolHandler):
# Only get the headers at first...
flow.response = HTTPResponse.from_protocol(
self.c.server_conn.protocol,
- flow.request,
+ flow.request.method,
body_size_limit=self.c.config.body_size_limit,
include_body=False,
)
@@ -760,7 +760,7 @@ class RequestReplayThread(threading.Thread):
self.flow.server_conn.protocol = http1.HTTP1Protocol(self.flow.server_conn)
self.flow.response = HTTPResponse.from_protocol(
self.flow.server_conn.protocol,
- r,
+ r.method,
body_size_limit=self.config.body_size_limit,
)
if self.channel: