diff options
author | Aldo Cortesi <aldo@nullcube.com> | 2012-06-24 23:13:09 +1200 |
---|---|---|
committer | Aldo Cortesi <aldo@nullcube.com> | 2012-06-24 23:13:09 +1200 |
commit | 7d01d5c7970c2b1b86bc6c98be5dfcaa145b1d53 (patch) | |
tree | 354efbaa63752d578f7bbb03a448edbd33cfe8d0 /netlib/http.py | |
parent | 820ac5152e02108f9d4e2226da1ba4369f67a4df (diff) | |
download | mitmproxy-7d01d5c7970c2b1b86bc6c98be5dfcaa145b1d53.tar.gz mitmproxy-7d01d5c7970c2b1b86bc6c98be5dfcaa145b1d53.tar.bz2 mitmproxy-7d01d5c7970c2b1b86bc6c98be5dfcaa145b1d53.zip |
Don't read all from server by default.
This can cause us to hang waiting for data. More research is needed to
establish the right course of action here.
Diffstat (limited to 'netlib/http.py')
-rw-r--r-- | netlib/http.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/netlib/http.py b/netlib/http.py index f0982b6d..150995dd 100644 --- a/netlib/http.py +++ b/netlib/http.py @@ -272,5 +272,5 @@ def read_response(rfile, method, body_size_limit): if method == "HEAD" or code == 204 or code == 304: content = "" else: - content = read_http_body_response(rfile, headers, True, body_size_limit) + content = read_http_body_response(rfile, headers, False, body_size_limit) return httpversion, code, msg, headers, content |