aboutsummaryrefslogtreecommitdiffstats
path: root/pathod/pathod.py
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@corte.si>2016-10-04 10:54:15 +1100
committerGitHub <noreply@github.com>2016-10-04 10:54:15 +1100
commit3d5b81199431f3232ebf6050f1b033e61d1172f4 (patch)
tree0d111125733f9211f170f345f506738bf4ba6804 /pathod/pathod.py
parentb0add569b988e9f1e319b9577fbd8e076ac5bd23 (diff)
parent2bd868662937b504cccd825e9e24e3cb6a142708 (diff)
downloadmitmproxy-3d5b81199431f3232ebf6050f1b033e61d1172f4.tar.gz
mitmproxy-3d5b81199431f3232ebf6050f1b033e61d1172f4.tar.bz2
mitmproxy-3d5b81199431f3232ebf6050f1b033e61d1172f4.zip
Merge pull request #1592 from cortesi/ws
docs and API-related cleanups
Diffstat (limited to 'pathod/pathod.py')
-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: