aboutsummaryrefslogtreecommitdiffstats
path: root/libmproxy/flow.py
diff options
context:
space:
mode:
authorMarcelo Glezer <mg@tekii.com.ar>2015-03-02 14:37:30 -0300
committerMarcelo Glezer <mg@tekii.com.ar>2015-03-02 14:37:30 -0300
commit8008a4336d85f4d34bd9f192c5f3e510f4adf5cd (patch)
tree02240bbd5a5abcff275e2d841252c1b86a32f6eb /libmproxy/flow.py
parentbd6c3f64c1f3102a4e91d4a964757821773781e0 (diff)
parente65a8659f00fb949d15f9af9fefd72df48abe9af (diff)
downloadmitmproxy-8008a4336d85f4d34bd9f192c5f3e510f4adf5cd.tar.gz
mitmproxy-8008a4336d85f4d34bd9f192c5f3e510f4adf5cd.tar.bz2
mitmproxy-8008a4336d85f4d34bd9f192c5f3e510f4adf5cd.zip
Merge pull request #2 from mitmproxy/master
update to mitmproxy/master
Diffstat (limited to 'libmproxy/flow.py')
-rw-r--r--libmproxy/flow.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/libmproxy/flow.py b/libmproxy/flow.py
index 14497964..43580109 100644
--- a/libmproxy/flow.py
+++ b/libmproxy/flow.py
@@ -165,7 +165,7 @@ class StreamLargeBodies(object):
r.headers, is_request, flow.request.method, code
)
if not (0 <= expected_size <= self.max_size):
- r.stream = True
+ r.stream = r.stream or True # r.stream may already be a callable, which we want to preserve.
class ClientPlaybackState: