aboutsummaryrefslogtreecommitdiffstats
path: root/libmproxy
diff options
context:
space:
mode:
authorHeikki Hannikainen <hessu@he.fi>2012-02-16 16:36:49 +0200
committerHeikki Hannikainen <hessu@he.fi>2012-02-16 16:36:49 +0200
commita3509b7f229eafdcbdd545e49de8ad2ac728e034 (patch)
tree9d9d0fc261ba8986da7ceab3f0a1512afaa380e1 /libmproxy
parenta82ac9eaf0ccc0f7c9f9588e8f76e213a6a5330b (diff)
downloadmitmproxy-a3509b7f229eafdcbdd545e49de8ad2ac728e034.tar.gz
mitmproxy-a3509b7f229eafdcbdd545e49de8ad2ac728e034.tar.bz2
mitmproxy-a3509b7f229eafdcbdd545e49de8ad2ac728e034.zip
reverse proxy mode: small comment clarification
Diffstat (limited to 'libmproxy')
-rw-r--r--libmproxy/proxy.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/libmproxy/proxy.py b/libmproxy/proxy.py
index 3b853e94..9b22c500 100644
--- a/libmproxy/proxy.py
+++ b/libmproxy/proxy.py
@@ -348,8 +348,11 @@ class ProxyHandler(SocketServer.StreamRequestHandler):
self.rfile = FileLike(self.connection)
self.wfile = FileLike(self.connection)
method, scheme, host, port, path, httpminor = parse_request_line(self.rfile.readline())
- # if we're in reverse proxy mode, we only get the path and version in the request
- # and need to fill up host and port from the configuration
+ # If we're in reverse proxy mode, we only get the path and
+ # version in the request and need to fill up host and port
+ # from the configuration. This still assumes that the client will
+ # provide the correct Host: header and we do not need to tamper
+ # with that (or will tamper using other means).
if self.config.reverse_upstream:
scheme = 'http'
host, port = self.config.reverse_upstream.split(':')