Re: [Technical Errata Reported] RFC9110 (9162)

On Fri, Sep 04, 2026 at 10:27:36AM -0500, Nico Williams wrote:
> On Fri, Sep 04, 2026 at 07:37:52AM +0200, Julian Reschke wrote:
> > Am 03.09.2026 um 16:23 schrieb Nico Williams:
> > > On Thu, Sep 03, 2026 at 12:29:06PM +0200, Julian Reschke wrote:
> > > > Am 03.09.2026 um 11:31 schrieb Rory Hewitt:
> > > > > I would prefer the definition to say "...separated by a comma, with
> > > > > optional white space (OWS)" - does optional mean it shouldn't be
> > > > > mentioned?
> > > > 
> > > > That would make the behavior non-deterministic.
> > > 
> > > Isn't it already so?
> > 
> > How so? In the spec, or in reality...?
> 
> It's optional whitespace, therefore there's more than one way to encode
> the thing.  I took your "non-deterministic" to mean that there is no
> canonical encoding -- not quite the same thing as non-deterministic.

I think there is some confusion between what should be sent and what
should be expected. A comma appears as a delimiter between header fields
that can appear multiple times, and is used to delimit their values.
Since these are individual values, it means that:

   Foo: a,b, c, d ,    e    ,f

is exactly equivalent to:

   Foo: a
   Foo: b
   Foo:  c
   Foo:  d 
   Foo:     e    
   Foo: f

but given that OWS must be trimmed on consumption around field values,
that becomes the same ones without spaces around, hence this is equivalent
to:

  Foo: a,b,c,d,e,f

or the more commonly used:

  Foo: a, b, c, d, e, f

IMHO all the info is present in the spec to figure this, but it's
possible that it's not obvious on a quick read.

Willy

Received on Saturday, 5 September 2026 17:05:58 UTC