]> git.proxmox.com Git - mirror_novnc.git/commitdiff
utils/websocket.py: silence partial unmask debug.
authorJoel Martin <github@martintribe.org>
Wed, 31 Aug 2011 20:33:30 +0000 (15:33 -0500)
committerJoel Martin <github@martintribe.org>
Wed, 31 Aug 2011 20:33:30 +0000 (15:33 -0500)
Pull from websockify ada02f2.

utils/websocket.py

index e3b475b370df9c77ec08a6f71b9a6a3bbd416124..a39be5e26177fb5a1db8212f283c84b5d33bc8f5 100644 (file)
@@ -305,7 +305,7 @@ Sec-WebSocket-Accept: %s\r
                 b = numpy.bitwise_xor(data, mask).tostring()
 
             if f['length'] % 4:
-                print("Partial unmask")
+                #print("Partial unmask")
                 mask = numpy.frombuffer(buf, dtype=numpy.dtype('B'),
                         offset=f['hlen'], count=(f['length'] % 4))
                 data = numpy.frombuffer(buf, dtype=numpy.dtype('B'),