aboutsummaryrefslogtreecommitdiffstats
path: root/mitmproxy/proxy/protocol/http.py
diff options
context:
space:
mode:
Diffstat (limited to 'mitmproxy/proxy/protocol/http.py')
-rw-r--r--mitmproxy/proxy/protocol/http.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/mitmproxy/proxy/protocol/http.py b/mitmproxy/proxy/protocol/http.py
index 2da4ddbf..89e53d00 100644
--- a/mitmproxy/proxy/protocol/http.py
+++ b/mitmproxy/proxy/protocol/http.py
@@ -398,13 +398,13 @@ class HttpLayer(base.Layer):
websockets.check_handshake(f.request.headers) and
websockets.check_handshake(f.response.headers)
)
- if is_websocket and not self.config.options.websockets:
+ if is_websocket and not self.config.options.websocket:
self.log(
"Client requested WebSocket connection, but the protocol is disabled.",
"info"
)
- if is_websocket and self.config.options.websockets:
+ if is_websocket and self.config.options.websocket:
layer = WebSocketLayer(self, f)
else:
layer = self.ctx.next_layer(self)