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.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/libmproxy/protocol2/http_proxy.py b/libmproxy/protocol2/http_proxy.py
index b85a65eb..b4c506cb 100644
--- a/libmproxy/protocol2/http_proxy.py
+++ b/libmproxy/protocol2/http_proxy.py
@@ -5,7 +5,7 @@ from .layer import Layer, ServerConnectionMixin
class HttpProxy(Layer, ServerConnectionMixin):
def __call__(self):
- layer = HttpLayer(self)
+ layer = HttpLayer(self, "regular")
for message in layer():
if not self._handle_server_message(message):
yield message
@@ -17,7 +17,7 @@ class HttpUpstreamProxy(Layer, ServerConnectionMixin):
self.server_address = server_address
def __call__(self):
- layer = HttpLayer(self)
+ layer = HttpLayer(self, "upstream")
for message in layer():
if not self._handle_server_message(message):
yield message