diff options
author | Maximilian Hils <git@maximilianhils.com> | 2013-11-19 04:08:16 +0100 |
---|---|---|
committer | Maximilian Hils <git@maximilianhils.com> | 2013-11-19 04:08:16 +0100 |
commit | d4c3b1c21355a46219c58e23d7542fa059af7573 (patch) | |
tree | 8c01e8734d3a868143f69970d8a0093dee5b0eff /libmproxy/proxy.py | |
parent | 38a1135ab8f3ab2e97d07fa8e339067c67722e16 (diff) | |
download | mitmproxy-d4c3b1c21355a46219c58e23d7542fa059af7573.tar.gz mitmproxy-d4c3b1c21355a46219c58e23d7542fa059af7573.tar.bz2 mitmproxy-d4c3b1c21355a46219c58e23d7542fa059af7573.zip |
attempt to fix https://github.com/mitmproxy/netlib/issues/24
Diffstat (limited to 'libmproxy/proxy.py')
-rw-r--r-- | libmproxy/proxy.py | 4 |
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"): |