aboutsummaryrefslogtreecommitdiffstats
path: root/libmproxy/protocol2/http_proxy.py
diff options
context:
space:
mode:
Diffstat (limited to 'libmproxy/protocol2/http_proxy.py')
-rw-r--r--libmproxy/protocol2/http_proxy.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/libmproxy/protocol2/http_proxy.py b/libmproxy/protocol2/http_proxy.py
index 6b3b6a82..51d3763c 100644
--- a/libmproxy/protocol2/http_proxy.py
+++ b/libmproxy/protocol2/http_proxy.py
@@ -4,11 +4,12 @@ from .layer import Layer, ServerConnectionMixin
from .http import HttpLayer
-class HttpProxy(Layer):
+class HttpProxy(Layer, ServerConnectionMixin):
def __call__(self):
layer = HttpLayer(self)
for message in layer():
- yield message
+ if not self._handle_server_message(message):
+ yield message
class HttpUpstreamProxy(Layer, ServerConnectionMixin):