[whatwg] Simon's WebSocket feedback

Simon Pieters simonp at opera.com
Wed Apr 14 22:12:00 PDT 2010


On Thu, 15 Apr 2010 03:08:12 +0200, Ian Hickson <ian at hixie.ch> wrote:

> On Mon, 12 Apr 2010, Simon Pieters wrote:
>>
>> WebSocket establish a WebSocket connection:
>>
>> [[
>> 21. Insert spaces1 U+0020 SPACE characters into key1 at random  
>> positions.
>>
>> Insert spaces2 U+0020 SPACE characters into key2 at random positions.
>> ]]
>>
>> It seems a bit risky to insert spaces at the start and at the end of the
>> string; I imagine some servers would ignore them (which would be a bug
>> in the server, but hard to notice since it's random). Maybe we should
>> avoid inserting them at the start and at the end.
>
> Since key1 and key2 can be numbers in the range 1-9, I don't see how to
> avoid at least one of those two places.

You can insert the random characters before inserting the spaces.

-- 
Simon Pieters
Opera Software



More information about the whatwg mailing list