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

[whatwg] WebSocket restriction on the server's subprotocol

From: Simon Pieters <simonp@opera.com>
Date: Tue, 20 Jul 2010 10:58:28 +0200
Message-ID: <op.vf4wjqakidj3kv@dhcp-190.linkoping.osa>
The WebSocket spec restricts the value of the subprotocol that the client  
is allowed to send to the server (see step 3 in the WebSocket()  
constructor algorithm). However there's no restriction on the server side  
(see step 2 of Sending the server's opening handshake). The client could  
not have asked for any subprotocol, but the server can still respond with  
a subprotocol, and the connection will be accepted.

Shouldn't the server have the same restriction as the client?

-- 
Simon Pieters
Opera Software
Received on Tuesday, 20 July 2010 01:58:28 UTC

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