diff options
| author | Aldo Cortesi <aldo@nullcube.com> | 2012-06-09 16:17:51 +1200 |
|---|---|---|
| committer | Aldo Cortesi <aldo@nullcube.com> | 2012-06-09 16:17:51 +1200 |
| commit | 05492baf8d2c970c5e5c3d207549893490ead751 (patch) | |
| tree | 936d486399857b88c97d7767c3eed7dbecefb8b5 /libmproxy | |
| parent | 22192d1a46a45b3824290ff4095539fa8b6be1fa (diff) | |
| download | mitmproxy-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')
| -rw-r--r-- | libmproxy/proxy.py | 1 |
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 |
