aboutsummaryrefslogtreecommitdiffstats
path: root/pathod
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@nullcube.com>2016-10-03 10:18:36 +1100
committerAldo Cortesi <aldo@nullcube.com>2016-10-04 08:13:56 +1100
commitb73569465391e6f159c6690fc08a566a2c0bbafb (patch)
tree8b45886d50a58bbb15178610bc33c332ae06b72b /pathod
parentb0add569b988e9f1e319b9577fbd8e076ac5bd23 (diff)
downloadmitmproxy-b73569465391e6f159c6690fc08a566a2c0bbafb.tar.gz
mitmproxy-b73569465391e6f159c6690fc08a566a2c0bbafb.tar.bz2
mitmproxy-b73569465391e6f159c6690fc08a566a2c0bbafb.zip
websockets_handshake -> websocket_handshake
The plural feels awkward.
Diffstat (limited to 'pathod')
-rw-r--r--pathod/pathod.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/pathod/pathod.py b/pathod/pathod.py
index bd0feb73..4f6c3d38 100644
--- a/pathod/pathod.py
+++ b/pathod/pathod.py
@@ -174,12 +174,12 @@ class PathodHandler(tcp.BaseHandler):
m = utils.MemBool()
- valid_websockets_handshake = websockets.check_handshake(headers)
+ valid_websocket_handshake = websockets.check_handshake(headers)
self.settings.websocket_key = websockets.get_client_key(headers)
# If this is a websocket initiation, we respond with a proper
# server response, unless over-ridden.
- if valid_websockets_handshake:
+ if valid_websocket_handshake:
anchor_gen = language.parse_pathod("ws")
else:
anchor_gen = None
@@ -226,7 +226,7 @@ class PathodHandler(tcp.BaseHandler):
spec,
lg
)
- if nexthandler and valid_websockets_handshake:
+ if nexthandler and valid_websocket_handshake:
self.protocol = protocols.websockets.WebsocketsProtocol(self)
return self.protocol.handle_websocket, retlog
else: