W3C home > Mailing lists > Public > whatwg@whatwg.org > December 2009

[whatwg] [hybi] WebSocket sub protocol name.

From: Julian Reschke <julian.reschke@gmx.de>
Date: Tue, 08 Dec 2009 09:25:54 +0100
Message-ID: <4B1E0D92.3040406@gmx.de>
Ian Hickson wrote:
> On Tue, 8 Dec 2009, Fumitoshi Ukai (?~\??~V~G?~U~O) wrote:
>> protocol now accepts U+0020. Is it ok to use U+0020 only in /protocol/ ?
>> (e.g. new WebSocket("ws://example.com/", " "); )
>> It seems space is optional after colon in field of handshake message, how
>> can we distinguish U+0020 and U+0020 U+0020 ?
> The space isn't optional (both the client and the server are required to 
> send it before the subprotocol name), it's just that the client will 
> handle a missing space gracefully. Maybe we should remove that "feature", 
> and require that the space be present, closing the connection otherwise?
> I don't feel strongly either way.
> Anyway, the point is that "WebSocket-Protocol: " is the empty string, and 
> "WebSocket-Protocol:  " is a one-space protocol name.
> ...

Out of curiosity: why do you think it's wise to allow SP in protocol names?

BR, Julian
Received on Tuesday, 8 December 2009 00:25:54 UTC

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