Re: [hybi] Last Call: <draft-ietf-hybi-thewebsocketprotocol-10.txt> (The WebSocket protocol) to Proposed Standard

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



12.07.2011 10:48, Iñaki Baz Castillo wrote:
2011/7/12 Mykyta Yevstifeyev<evnikita2@xxxxxxxxx>:
          Sec-WebSocket-Extensions: bar; baz=2

    is exactly equivalent to

          Sec-WebSocket-Extensions: foo, bar; baz=2
These two examples don't match the aforementioned ABNF; the space before
"baz=2" should be removed.
Hi, are you sure of that? In SIP protocol (which inherits from HTTP
grammar) a header parameter (;foo=lalala) can contain spaces anywhere
(before/after the ";", before/after the "="). So something like:

    Sec-WebSocket-Extensions: foo  , bar  ; baz = 2

is valid.
No, its' everything OK with this issue. LWS is allowed between <extension> productions in the header, but not between the parts of this productions: <extension-token>s and <extension-param>s. See http://tools.ietf.org/html/rfc2616#section-2.1 and http://tools.ietf.org/html/rfc2616#section-2.1.


However it's not clear for me wheter in this example "baz=2" is a
header param or a param just for the value "bar". In the last case it
would mean a specific header syntax, so spaces could be not allowed.
Could you please point to the ABNF grammar you meant?
This was meant to be the parameter for the "bar", as far as I understand.

Mykyta

Thanks.


_______________________________________________
Ietf mailing list
Ietf@xxxxxxxx
https://www.ietf.org/mailman/listinfo/ietf



[Index of Archives]     [IETF Annoucements]     [IETF]     [IP Storage]     [Yosemite News]     [Linux SCTP]     [Linux Newbies]     [Fedora Users]