summaryrefslogtreecommitdiff
path: root/websocket/_handshake.py
diff options
context:
space:
mode:
authorbubbleboy14 <mario.balibrera@gmail.com>2023-01-20 13:14:23 -0800
committerbubbleboy14 <mario.balibrera@gmail.com>2023-01-20 13:14:23 -0800
commitbe4110c08c5d10b52410c36c72d1deb9e4cbf32c (patch)
treed6dddc00338bc416ba72e7de629dd170270ddb8f /websocket/_handshake.py
parent7d83cc3e559526ca2d6774768baffc19ff14f8da (diff)
parent601a9022d6044bf6d414fdb1122916b65dc58ca7 (diff)
downloadwebsocket-client-t858.tar.gz
Merge branch 'master' into t858t858
Diffstat (limited to 'websocket/_handshake.py')
-rw-r--r--websocket/_handshake.py1
1 files changed, 0 insertions, 1 deletions
diff --git a/websocket/_handshake.py b/websocket/_handshake.py
index 6a57c95..07a4cfb 100644
--- a/websocket/_handshake.py
+++ b/websocket/_handshake.py
@@ -101,7 +101,6 @@ def _get_handshake_headers(resource, url, host, port, options):
# Append Sec-WebSocket-Key & Sec-WebSocket-Version if not manually specified
if not options.get('header') or 'Sec-WebSocket-Key' not in options['header']:
- key = _create_sec_websocket_key()
headers.append("Sec-WebSocket-Key: %s" % key)
else:
key = options['header']['Sec-WebSocket-Key']