diff options
author | Aldo Cortesi <aldo@nullcube.com> | 2012-06-10 13:17:18 +1200 |
---|---|---|
committer | Aldo Cortesi <aldo@nullcube.com> | 2012-06-10 13:17:18 +1200 |
commit | 52779d9db98dff042a0b2b5dca97440b520367df (patch) | |
tree | ecaed5067234758e7da28f7e21e908c7a948aa51 /libmproxy/proxy.py | |
parent | 55ddf853cd8cac13bb6021ef92d21af85cb9b2f1 (diff) | |
download | mitmproxy-52779d9db98dff042a0b2b5dca97440b520367df.tar.gz mitmproxy-52779d9db98dff042a0b2b5dca97440b520367df.tar.bz2 mitmproxy-52779d9db98dff042a0b2b5dca97440b520367df.zip |
Refactoring of proxy.py
- Correctly pass HTTP request version on to upstream servers
- Adjust tests not to hang due to a pathod response with no content-length
Diffstat (limited to 'libmproxy/proxy.py')
-rw-r--r-- | libmproxy/proxy.py | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/libmproxy/proxy.py b/libmproxy/proxy.py index c7e5d972..3be20761 100644 --- a/libmproxy/proxy.py +++ b/libmproxy/proxy.py @@ -123,7 +123,6 @@ 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 |