aboutsummaryrefslogtreecommitdiffstats
path: root/libmproxy/proxy.py
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@nullcube.com>2012-06-09 16:17:51 +1200
committerAldo Cortesi <aldo@nullcube.com>2012-06-09 16:17:51 +1200
commit05492baf8d2c970c5e5c3d207549893490ead751 (patch)
tree936d486399857b88c97d7767c3eed7dbecefb8b5 /libmproxy/proxy.py
parent22192d1a46a45b3824290ff4095539fa8b6be1fa (diff)
downloadmitmproxy-05492baf8d2c970c5e5c3d207549893490ead751.tar.gz
mitmproxy-05492baf8d2c970c5e5c3d207549893490ead751.tar.bz2
mitmproxy-05492baf8d2c970c5e5c3d207549893490ead751.zip
Move from requests to human_curl.
It turns out that _none_ of the Python stdlib or anything that relies on it supports CONNECT through a proxy. Beggars belief, but there you go.
Diffstat (limited to 'libmproxy/proxy.py')
-rw-r--r--libmproxy/proxy.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/libmproxy/proxy.py b/libmproxy/proxy.py
index 9249de86..2d4ee988 100644
--- a/libmproxy/proxy.py
+++ b/libmproxy/proxy.py
@@ -123,6 +123,7 @@ def read_http_body(rfile, connection, headers, all, limit):
content = rfile.read(limit if limit else None)
connection.close = True
else:
+ connection.close = True
content = ""
return content