aboutsummaryrefslogtreecommitdiffstats
path: root/libmproxy/protocol2/http_proxy.py
diff options
context:
space:
mode:
authorMaximilian Hils <git@maximilianhils.com>2015-08-14 10:41:11 +0200
committerMaximilian Hils <git@maximilianhils.com>2015-08-14 10:41:11 +0200
commit808218f4bc64be8de065604f6509eb75d98fde88 (patch)
treeae9320c3153761acb9924a5eb52b8a6162c43448 /libmproxy/protocol2/http_proxy.py
parentaef3b626a70de5f385c8f5496c2e49575b5c3e1c (diff)
downloadmitmproxy-808218f4bc64be8de065604f6509eb75d98fde88.tar.gz
mitmproxy-808218f4bc64be8de065604f6509eb75d98fde88.tar.bz2
mitmproxy-808218f4bc64be8de065604f6509eb75d98fde88.zip
more work on http layer
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):