<br><br><div class="gmail_quote">On Mon, Dec 7, 2009 at 5:05 PM, Ian Hickson <span dir="ltr"><<a href="mailto:ian@hixie.ch">ian@hixie.ch</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im"><br>
On Mon, 7 Dec 2009, Fumitoshi Ukai (榈~\椋兼~V~G鎫U~O) wrote:<br>
> > > ><br>
</div><div class="im">> > > > Control characters are allowed (though using them would be silly).<br>
> > ><br>
> > > Why are control characters (except LF and CR) allowed?<br>
> ><br>
> > There doesn't seem to be a good reason to exclude them, and excluding<br>
> > them would lead to a more complicated processing model.<br>
><br>
> In HTTP, field-content is TEXT or combinations of token, separators, and<br>
> quoted-string. TEXT, or token, separators excludes CTLs. So, we must use<br>
> quoted-string in WebSocket-Protocol: if protocol contains CTLs?<br>
<br>
</div>Oh, I forgot that HTTP had the no-CTL restriction. Good point. I've<br>
updated the spec to be consistent with this.<br></blockquote><div><br></div><div>In "The Web Sockets API", could you fix the following statement?</div><div> The second, protocol, if present, specifies a sub-protocol that the server must support for the connection to be successful. The sub-protocol name must be an ASCII string with no U+000A LINE FEED (LF) or U+000D CARRIAGE RETURN (CR) characters in it.</div>
<div><br></div><div>IIRC, in old spec draft, protocol should not be an empty string, but current spec draft accepts it?</div><div><br></div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im"><br>
<br>
> And, why is it limited to ASCII instead of UTF-8?<br>
<br>
</div>Because the HTTP working group refuse to allow UTF-8 in HTTP headers for<br>
reasons that I don't really understand, and the handshake is supposed to<br>
be valid HTTP.<br></blockquote><div><br></div><div>Hmm, then it should be mentioned in The Web Socket protocol 1.2 Protocol overview?</div><div>It looks websocket message accept UTF-8 in handshake message.</div><div><br>
</div><div>-- </div><div>ukai</div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im"><br>
<br>
On Mon, 7 Dec 2009, Julian Reschke wrote:<br>
><br>
> There isn't a good reason to disallow control characters in a *name*????<br>
<br>
</div>Not as far as I can tell, no... what would a good reason be?<br>
<font color="#888888"><br>
--<br>
</font><div><div></div><div class="h5">Ian Hickson U+1047E )\._.,--....,'``. fL<br>
<a href="http://ln.hixie.ch/" target="_blank">http://ln.hixie.ch/</a> U+263A /, _.. \ _\ ;`._ ,.<br>
Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.'</div></div></blockquote></div><br>