vanan08 / unitt

Automatically exported from code.google.com/p/unitt
0 stars 0 forks source link

Bug: Sec-WebSocket-Key length is not 16 bytes #28

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi guys,

I would like to report that the generateSecKeys() method in WebSocketHandshake 
is buggy. The length  of the generated key needs to be 16 bytes according to 
the protocol:

A "Sec-WebSocket-Key" header field with a base64-encoded (see
        Section 4 of [RFC4648]) value that, when decoded, is 16 bytes in
        length.

I am using version Java API 0.9.2.1

Cheers,
Ivan

Original issue reported on code.google.com by hristov...@gmail.com on 19 Oct 2011 at 4:01

GoogleCodeExporter commented 9 years ago
I will take a look at this over the weekend. Thank you for reporting the issue.

Original comment by joshuadmorris@gmail.com on 14 Nov 2011 at 3:04

GoogleCodeExporter commented 9 years ago
Sorry for the delay, the holidays are playing havoc with my schedule.

Original comment by joshuadmorris@gmail.com on 2 Dec 2011 at 1:21

GoogleCodeExporter commented 9 years ago

Original comment by joshuadmorris@gmail.com on 31 Jan 2012 at 6:32