aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libmproxy/proxy.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/libmproxy/proxy.py b/libmproxy/proxy.py
index c08040e6..b879a405 100644
--- a/libmproxy/proxy.py
+++ b/libmproxy/proxy.py
@@ -407,9 +407,11 @@ class ProxyHandler(SocketServer.StreamRequestHandler):
d = self.rfile.readline()
if not d.strip():
break
- self.wfile.write('HTTP/1.1 200 Connection established\r\n')
- self.wfile.write('Proxy-agent: %s\r\n'%NAME)
- self.wfile.write('\r\n')
+ self.wfile.write(
+ 'HTTP/1.1 200 Connection established\r\n' +
+ ('Proxy-agent: %s\r\n'%NAME) +
+ '\r\n'
+ )
self.wfile.flush()
self.connection = ssl.wrap_socket(
self.connection,