aboutsummaryrefslogtreecommitdiffstats
path: root/libmproxy/proxy.py
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@nullcube.com>2013-12-08 14:32:40 +1300
committerAldo Cortesi <aldo@nullcube.com>2013-12-08 14:32:40 +1300
commit1e733f314903feef9607722f23529b5ea6fd03dc (patch)
treea36d260f2b33f08166d9c582bd7b5e7a62eed704 /libmproxy/proxy.py
parentf63380a04e7b7cf731d560bf01a28c67538d7610 (diff)
parentd4c3b1c21355a46219c58e23d7542fa059af7573 (diff)
downloadmitmproxy-1e733f314903feef9607722f23529b5ea6fd03dc.tar.gz
mitmproxy-1e733f314903feef9607722f23529b5ea6fd03dc.tar.bz2
mitmproxy-1e733f314903feef9607722f23529b5ea6fd03dc.zip
Merge branch 'fix_invalid_tcp_close'
Diffstat (limited to 'libmproxy/proxy.py')
-rw-r--r--libmproxy/proxy.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/libmproxy/proxy.py b/libmproxy/proxy.py
index 75a54192..790ae18a 100644
--- a/libmproxy/proxy.py
+++ b/libmproxy/proxy.py
@@ -258,13 +258,13 @@ class ProxyHandler(tcp.BaseHandler):
else:
response = response_reply
self.send_response(response)
- if request and http.request_connection_close(request.httpversion, request.headers):
+ if request and http.connection_close(request.httpversion, request.headers):
return
# We could keep the client connection when the server
# connection needs to go away. However, we want to mimic
# behaviour as closely as possible to the client, so we
# disconnect.
- if http.response_connection_close(response.httpversion, response.headers):
+ if http.connection_close(response.httpversion, response.headers):
return
except (IOError, ProxyError, http.HttpError, tcp.NetLibError), e:
if hasattr(e, "code"):