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.
This commit is contained in:
Aldo Cortesi 2012-06-24 23:13:09 +12:00
parent 820ac5152e
commit 7d01d5c797

View File

@ -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