mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-26 18:18:25 +00:00
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:
parent
820ac5152e
commit
7d01d5c797
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user