From ebd539b49f0706918e979dc921cf454ae448eaf9 Mon Sep 17 00:00:00 2001 From: Maximilian Hils Date: Mon, 8 Sep 2014 16:02:31 +0200 Subject: update examples, fix #353 --- libmproxy/protocol/http.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libmproxy/protocol/http.py') diff --git a/libmproxy/protocol/http.py b/libmproxy/protocol/http.py index 35c5611f..5579cb63 100644 --- a/libmproxy/protocol/http.py +++ b/libmproxy/protocol/http.py @@ -1095,7 +1095,8 @@ class HTTPHandler(ProtocolHandler): if request.form_in == "absolute": if request.scheme != "http": raise http.HttpError(400, "Invalid request scheme: %s" % request.scheme) - if request.form_out == "relative": + if self.c.config.mode == "regular": + # Update info so that an inline script sees the correct value at flow.server_conn self.c.set_server_address((request.host, request.port)) flow.server_conn = self.c.server_conn -- cgit v1.2.3