summaryrefslogtreecommitdiff
path: root/websockify/websocket.py
diff options
context:
space:
mode:
authorSolly Ross <sross@redhat.com>2015-05-06 13:49:13 -0400
committerSolly Ross <sross@redhat.com>2015-05-13 16:03:57 -0400
commit04fd789a677a84b3c908bb8ac02413d16271d5fb (patch)
tree276643d99c6648ea600f3305d03ced65e3eb6506 /websockify/websocket.py
parentd5216c31669bd25399dbb7add964c969b406db2d (diff)
downloadwebsockify-04fd789a677a84b3c908bb8ac02413d16271d5fb.tar.gz
Update Tests and Test Plugins
This commit updates the unit tests to work with the current code and adds in tests for the auth and token plugin functionality.
Diffstat (limited to 'websockify/websocket.py')
-rw-r--r--websockify/websocket.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/websockify/websocket.py b/websockify/websocket.py
index 20305b8..727413a 100644
--- a/websockify/websocket.py
+++ b/websockify/websocket.py
@@ -790,7 +790,7 @@ class WebSocketServer(object):
handshake = sock.recv(1024, socket.MSG_PEEK)
#self.msg("Handshake [%s]" % handshake)
- if handshake == "":
+ if not handshake:
raise self.EClose("ignoring empty handshake")
elif handshake.startswith(s2b("<policy-file-request/>")):