summaryrefslogtreecommitdiff
path: root/websocket/_handshake.py
diff options
context:
space:
mode:
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']