aboutsummaryrefslogtreecommitdiffstats
path: root/libmproxy/protocol
diff options
context:
space:
mode:
authorThomas Kriechbaumer <thomas@kriechbaumer.name>2016-01-26 19:38:17 +0100
committerThomas Kriechbaumer <thomas@kriechbaumer.name>2016-02-04 09:52:27 +0100
commitcd2b4ea058e82ef9e2dc824a379309d68f08cec4 (patch)
tree659ef311867cd35bf2aa89fdcc95fc0009a0ac9a /libmproxy/protocol
parent276817e40e99dbb2ddc7638839bd74e944fd704e (diff)
downloadmitmproxy-cd2b4ea058e82ef9e2dc824a379309d68f08cec4.tar.gz
mitmproxy-cd2b4ea058e82ef9e2dc824a379309d68f08cec4.tar.bz2
mitmproxy-cd2b4ea058e82ef9e2dc824a379309d68f08cec4.zip
bump h2 dependency and use latest API
Diffstat (limited to 'libmproxy/protocol')
-rw-r--r--libmproxy/protocol/http2.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/libmproxy/protocol/http2.py b/libmproxy/protocol/http2.py
index 71423bf7..23004497 100644
--- a/libmproxy/protocol/http2.py
+++ b/libmproxy/protocol/http2.py
@@ -144,7 +144,7 @@ class Http2Layer(Layer):
raise HttpException("HTTP body too large. Limit is {}.".format(self.config.body_size_limit))
self.streams[eid].data_queue.put(event.data)
self.streams[eid].queued_data_length += len(event.data)
- source_conn.h2.safe_increment_flow_control(event.stream_id, len(event.data))
+ source_conn.h2.safe_increment_flow_control(event.stream_id, event.flow_controlled_length)
elif isinstance(event, StreamEnded):
self.streams[eid].timestamp_end = time.time()
self.streams[eid].data_finished.set()