W3C home > Mailing lists > Public > whatwg@whatwg.org > April 2010

[whatwg] WebSocket opening handshake

From: Simon Pieters <simonp@opera.com>
Date: Thu, 22 Apr 2010 10:21:45 +0200
Message-ID: <op.vbj1ijiridj3kv@simon-pieterss-macbook.local>
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

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:22 UTC