aboutsummaryrefslogtreecommitdiffstats
path: root/libmproxy/protocol/http.py
diff options
context:
space:
mode:
authorMaximilian Hils <git@maximilianhils.com>2014-09-08 23:34:43 +0200
committerMaximilian Hils <git@maximilianhils.com>2014-09-08 23:34:43 +0200
commitfbc4bb38df48447f846ae0ff4f87062c827bd632 (patch)
tree3955afbe79f9e9e6497565c1e2a34d9c66234ed9 /libmproxy/protocol/http.py
parent7ea8d3ff357e278ba047a18a0dcc4bd434017c79 (diff)
downloadmitmproxy-fbc4bb38df48447f846ae0ff4f87062c827bd632.tar.gz
mitmproxy-fbc4bb38df48447f846ae0ff4f87062c827bd632.tar.bz2
mitmproxy-fbc4bb38df48447f846ae0ff4f87062c827bd632.zip
mitmproxy -> libmproxy.main. do some leanup on the way
Diffstat (limited to 'libmproxy/protocol/http.py')
-rw-r--r--libmproxy/protocol/http.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/libmproxy/protocol/http.py b/libmproxy/protocol/http.py
index 5579cb63..1109c753 100644
--- a/libmproxy/protocol/http.py
+++ b/libmproxy/protocol/http.py
@@ -1028,7 +1028,7 @@ class HTTPHandler(ProtocolHandler):
html_content = '<html><head>\n<title>%d %s</title>\n</head>\n<body>\n%s\n</body>\n</html>' % \
(code, response, message)
self.c.client_conn.wfile.write("HTTP/1.1 %s %s\r\n" % (code, response))
- self.c.client_conn.wfile.write("Server: %s\r\n" % self.c.server_version)
+ self.c.client_conn.wfile.write("Server: %s\r\n" % self.c.config.server_version)
self.c.client_conn.wfile.write("Content-type: text/html\r\n")
self.c.client_conn.wfile.write("Content-Length: %d\r\n" % len(html_content))
if headers:
@@ -1079,7 +1079,7 @@ class HTTPHandler(ProtocolHandler):
self.c.client_conn.send(
'HTTP/1.1 200 Connection established\r\n' +
'Content-Length: 0\r\n' +
- ('Proxy-agent: %s\r\n' % self.c.server_version) +
+ ('Proxy-agent: %s\r\n' % self.c.config.server_version) +
'\r\n'
)
return self.process_connect_request(self.c.server_conn.address)