niv / websocket.nim

websockets for nim
http://niv.github.io/websocket.nim/docs/0.1.1/websocket.html
Other
102 stars 25 forks source link

Fix #52 crash while sending zero length data frame. #55

Closed hiteshjasani closed 5 years ago

hiteshjasani commented 5 years ago

This fixes issue #52. The problem is a zero length data frame was not being handled and an IndexError was being thrown. This problem occurred when the server sent a Ping message and the client was trying to create the Pong.

Araq commented 5 years ago

Thank you!

dom96 commented 5 years ago

Thanks for fixing this!