From 7d01d5c7970c2b1b86bc6c98be5dfcaa145b1d53 Mon Sep 17 00:00:00 2001 From: Aldo Cortesi Date: Sun, 24 Jun 2012 23:13:09 +1200 Subject: [PATCH] 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. --- netlib/http.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/netlib/http.py b/netlib/http.py index f0982b6df..150995dd5 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