aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKostya Esmukov <kostya.shift@gmail.com>2016-05-14 15:59:21 +0400
committerMaximilian Hils <git@maximilianhils.com>2016-05-14 04:59:21 -0700
commit7fdc0a94db657ecc7a361004f1924fc30a2e4329 (patch)
tree5f45bf7657075fed5e625c8eb28e98aed0d5e87c
parent902cd255d4fae74eb48cf501d580116b753e1647 (diff)
downloadmitmproxy-7fdc0a94db657ecc7a361004f1924fc30a2e4329.tar.gz
mitmproxy-7fdc0a94db657ecc7a361004f1924fc30a2e4329.tar.bz2
mitmproxy-7fdc0a94db657ecc7a361004f1924fc30a2e4329.zip
Fixed HTTP2 headers being folded. (#1143) (#1144)
-rw-r--r--mitmproxy/protocol/http2.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mitmproxy/protocol/http2.py b/mitmproxy/protocol/http2.py
index 702b1b33..140a94d4 100644
--- a/mitmproxy/protocol/http2.py
+++ b/mitmproxy/protocol/http2.py
@@ -56,7 +56,7 @@ class SafeH2Connection(H2Connection):
with self.lock:
if is_zombie(): # pragma: no cover
return
- self.send_headers(stream_id, headers)
+ self.send_headers(stream_id, headers.fields)
self.conn.send(self.data_to_send())
def safe_send_body(self, is_zombie, stream_id, chunks):