diff options
author | Solly Ross <sross@redhat.com> | 2015-05-06 13:49:13 -0400 |
---|---|---|
committer | Solly Ross <sross@redhat.com> | 2015-05-13 16:03:57 -0400 |
commit | 04fd789a677a84b3c908bb8ac02413d16271d5fb (patch) | |
tree | 276643d99c6648ea600f3305d03ced65e3eb6506 /websockify/websocket.py | |
parent | d5216c31669bd25399dbb7add964c969b406db2d (diff) | |
download | websockify-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.py | 2 |
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/>")): |