aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Kriechbaumer <thomas@kriechbaumer.name>2016-05-21 17:42:47 +0200
committerThomas Kriechbaumer <thomas@kriechbaumer.name>2016-05-21 17:42:47 +0200
commit0cb2e656cd37d97f89e39d1fc6abd0bc39a3d0d2 (patch)
tree941811127bef8032e9ac4ffb6e46b489af525fd8
parent395b11d288c917d4ec2c65d8f9a1562a0b525780 (diff)
downloadmitmproxy-0cb2e656cd37d97f89e39d1fc6abd0bc39a3d0d2.tar.gz
mitmproxy-0cb2e656cd37d97f89e39d1fc6abd0bc39a3d0d2.tar.bz2
mitmproxy-0cb2e656cd37d97f89e39d1fc6abd0bc39a3d0d2.zip
immediately send push to client
-rw-r--r--mitmproxy/protocol/http2.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/mitmproxy/protocol/http2.py b/mitmproxy/protocol/http2.py
index 1cc12792..c04bd507 100644
--- a/mitmproxy/protocol/http2.py
+++ b/mitmproxy/protocol/http2.py
@@ -174,6 +174,7 @@ class Http2Layer(Layer):
parent_eid = self.server_to_client_stream_ids[event.parent_stream_id]
with self.client_conn.h2.lock:
self.client_conn.h2.push_stream(parent_eid, event.pushed_stream_id, event.headers)
+ self.client_conn.send(self.client_conn.h2.data_to_send())
headers = Headers([[str(k), str(v)] for k, v in event.headers])
headers['x-mitmproxy-pushed'] = 'true'