[whatwg] WebSocket opening handshake

establishing a WebSocket connection:

[[
41. ... or if there are any entries in the fields list whose names are the  
empty string, then fail the WebSocket connection and abort these steps. ...
]]

I think it is better to check for this while parsing the fields, by  
checking if the name byte array is empty here:

[[
34. Read a byte from the server.

...
If the byte is 0x3A (ASCII :)
Move on to the next step.
]]

-- 
Simon Pieters
Opera Software

Received on Thursday, 22 April 2010 01:21:45 UTC