kraih/mojo — pull request #234 by tinx (2011-11-29 22:07:30+00:00)
Title: Fixed a border case bug: first WebSocket frame has only one byte of payload

There was a bug that caused the first WebSocket packet in a Mojo::UserAgent script to be ignored if it had only one byte of payload data. It probably also affected WebSocket servers including Morbo. I've fixed the bug, double checked with the WebSocket draft-17 and added a couple of regression tests. (which failed without the fix and work fine now)