aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Kriechbaumer <thomas@kriechbaumer.name>2016-01-14 19:14:05 +0100
committerThomas Kriechbaumer <thomas@kriechbaumer.name>2016-02-04 09:52:01 +0100
commit986e30fb19dbe97a72540b2849312032a92976f0 (patch)
treeb091892948efba58cd0124c5348bcb98029a1c66
parent9e619742887f686aec1059283316ed389443cdf3 (diff)
downloadmitmproxy-986e30fb19dbe97a72540b2849312032a92976f0.tar.gz
mitmproxy-986e30fb19dbe97a72540b2849312032a92976f0.tar.bz2
mitmproxy-986e30fb19dbe97a72540b2849312032a92976f0.zip
add todo note
-rw-r--r--libmproxy/protocol/http.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/libmproxy/protocol/http.py b/libmproxy/protocol/http.py
index 7ea5f57d..17ddd5dc 100644
--- a/libmproxy/protocol/http.py
+++ b/libmproxy/protocol/http.py
@@ -173,6 +173,8 @@ class SafeH2Connection(H2Connection):
self.conn.send(self.data_to_send())
def safe_send_body(self, stream_id, chunks):
+ # TODO: this assumes the MAX_FRAME_SIZE does not change in the middle
+ # of a transfer - it could though. Then we need to re-chunk everything.
for chunk in chunks:
max_outbound_frame_size = self.max_outbound_frame_size
for i in xrange(0, len(chunk), max_outbound_frame_size):