W3C home > Mailing lists > Public > ietf-http-wg@w3.org > January to March 2013

Re: Multiple header fields with the same field name - unwritten assumption about quoted commas in values?

From: Julian Reschke <julian.reschke@gmx.de>
Date: Wed, 09 Jan 2013 17:30:54 +0100
Message-ID: <50ED9B3E.9010507@gmx.de>
To: Piotr Dobrogost <p@ietf.dobrogost.net>
CC: ietf-http-wg@w3.org
On 2013-01-09 16:32, Piotr Dobrogost wrote:
> On Wed, Jan 9, 2013 at 12:00 PM, Julian Reschke <julian.reschke@gmx.de> wrote:
>>
>> It's a good idea to do, but not always the case. Example: "If-Match" and
>> "If-None-Match". So to separate values in a list production, code needs to
>> understand the syntax of the individual values.
>
> I don't quite understand what you meant to say above.
> What is a good idea?

It is a good idea to define header fields in a way so that they can be 
parsed unambiguously.

> What's special about "If-Match" and "If-None-Match" headers?

The allow ",", but do not use quoted-string syntax.

>> So to separate values in a list production, code needs to understand the syntax of the individual values.
>
> True but is this mentioned somewhere?

Not at the moment, but maybe we should mention it.

Best regards, Julian
Received on Wednesday, 9 January 2013 16:31:25 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 9 January 2013 16:31:27 GMT