- From: Roy T. Fielding <fielding@gbiv.com>
- Date: Wed, 2 Sep 2026 23:28:12 -0700
- To: Julian Reschke <julian.reschke@gmx.de>
- Cc: rfc-editor@rfc-editor.org, Tommy Pauly <tpauly@apple.com>, gorry@erg.abdn.ac.uk, Mark Nottingham <mnot@mnot.net>, Francesca Palombini <francesca.palombini@ericsson.com>, mbishop@evequefou.be, julian@shepjour.com, ietf-http-wg@w3.org
- Message-Id: <A3F7AAEC-1274-43B6-A08C-3EFFDE3EDA63@gbiv.com>
I agree with your assessment. The example is problematic, not the definition. Whitespace is not always irrelevant.
> On Sep 2, 2026, at 9:58 PM, Julian Reschke <julian.reschke@gmx.de> wrote:
>
> Am 02.09.2026 um 20:59 schrieb rfc-editor@rfc-editor.org:
>> ...
>> Original Text
>> -------------
>> When a field name is repeated within a section, its combined
>> field value consists of the list of corresponding field line values
>> within that section, concatenated in order, with each field line
>> value separated by a comma.
>> For example, this section:
>> Example-Field: Foo, Bar
>> Example-Field: Baz
>> contains two field lines, both with the field name "Example-Field".
>> The first field line has a field line value of "Foo, Bar", while the
>> second field line value is "Baz". The field value for "Example-
>> Field" is the list "Foo, Bar, Baz".
>> Corrected Text
>> --------------
>> When a field name is repeated within a section, its combined
>> field value consists of the list of corresponding field line values
>> within that section, concatenated in order, with each field line
>> value separated by a comma SP (", ").
>> For example, this section:
>> Example-Field: Foo, Bar
>> Example-Field: Baz
>> contains two field lines, both with the field name "Example-Field".
>> The first field line has a field line value of "Foo, Bar", while the
>> second field line value is "Baz". The field value for "Example-
>> Field" is the list "Foo, Bar, Baz".
>> Notes
>> -----
>> The original text says, "with each field line value separated by a comma", but in the example, it shows the field line values being separated by a comma SP (", ") instead of just a comma (","). Hence, either the given definition of "combined field value" is incorrect, or the example intended to demonstrate it is incorrect.
>> ...
>
> If there's a problem here than it is the example, not the definition. The example assumes that whitespace is irrelevant; that is not true in general.
No, it is always true that list values allow OWS after the comma during this phase
of message parsing. The field name and field-specific parsing cannot override the
HTTP message parser. Multiple fields with the same name are only allowed when
the field value is a list, and a list defines OWS after the comma that (in this case)
is being inserted by the message parser because it is a list of values. If the sender
fails to adhere to those requirements, we don't care about the field value changing.
This fact is what allows HTTP to have extension fields.
The examples show the recommended default of one SP after each comma
(for consistency, not because it has any effect on the field value).
....Roy
Received on Thursday, 3 September 2026 06:28:32 UTC