mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-27 02:24:18 +00:00
actually fix #1115
This commit is contained in:
parent
99178c57db
commit
9ac9df82c4
@ -171,7 +171,7 @@ class StreamLargeBodies(object):
|
|||||||
expected_size = http1.expected_http_body_size(
|
expected_size = http1.expected_http_body_size(
|
||||||
flow.request, flow.response if not is_request else None
|
flow.request, flow.response if not is_request else None
|
||||||
)
|
)
|
||||||
if not (0 <= expected_size <= self.max_size):
|
if not r.content and not (0 <= expected_size <= self.max_size):
|
||||||
# r.stream may already be a callable, which we want to preserve.
|
# r.stream may already be a callable, which we want to preserve.
|
||||||
r.stream = r.stream or True
|
r.stream = r.stream or True
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user