Skip to content

Commit

Permalink
Fix decoding of pre-hixie-76 protocol version.
Browse files Browse the repository at this point in the history
Commit 752241f accditentally ended up
hooking the hybi-10 protocol decoder to requests using the
pre-hixie-75 handshake.
  • Loading branch information
wulczer committed Jul 31, 2011
1 parent fbf3a21 commit 288e59f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion websocket.py
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,8 @@ def renderWebSocket(self):

self.write("\r\n")
self.channel.setRawMode()
self.channel._transferDecoder = WebSocketHybiFrameDecoder(
# XXX we probably don't want to set _transferDecoder
self.channel._transferDecoder = WebSocketFrameDecoder(
self, handler)
handler.transport._connectionMade()
return
Expand Down

0 comments on commit 288e59f

Please sign in to comment.