diff --git a/mitmproxy/proxy/layers/http/_http1.py b/mitmproxy/proxy/layers/http/_http1.py index 08cb7157a..06f2f3c99 100644 --- a/mitmproxy/proxy/layers/http/_http1.py +++ b/mitmproxy/proxy/layers/http/_http1.py @@ -123,7 +123,6 @@ class Http1Connection(HttpConnection, metaclass=abc.ABCMeta): if self.buf: already_received = self.buf.maybe_extract_at_most(len(self.buf)) yield from self.state(events.DataReceived(self.conn, already_received)) - self.buf.compress() def passthrough(self, event: events.Event) -> layer.CommandGenerator[None]: assert self.stream_id diff --git a/setup.py b/setup.py index c02eda3d3..b8a766f90 100644 --- a/setup.py +++ b/setup.py @@ -73,6 +73,7 @@ setup( "click>=7.0,<8", "cryptography>=3.3,<3.4", "flask>=1.1.1,<1.2", + "h11>=0.11,<0.13", "h2>=4.0,<5", "hyperframe>=6.0,<7", "kaitaistruct>=0.7,<0.10",