httpwg / httpbis-issues

1 stars 1 forks source link

Redundant rule quoted-str-nf #528

Closed mnot closed 3 years ago

mnot commented 10 years ago

Simon Yarde:

Seems quoted-str-nf in chunk-ext is now redundant?

-- > chunk-ext = ( ";" chunk-ext-name [ "=" chunk-ext-val ] ) -- > -- > chunk-ext-name = token -- > chunk-ext-val = token / quoted-str-nf -- > -- > quoted-str-nf = DQUOTE ( qdtext-nf / quoted-pair ) DQUOTE -- > ; like quoted-string, but disallowing line folding -- > qdtext-nf = HTAB / SP / %x21 / %x23-5B / %x5D-7E / obs-text

-- > quoted-string = DQUOTE *( qdtext / quoted-pair ) DQUOTE -- > qdtext = HTAB / SP /%x21 / %x23-5B / %x5D-7E / obs-text -- > obs-text = %x80-FF

chunk-ext could be simplified to:

-- > chunk-ext = *( ";" chunk-ext-name [ "=" chunk-ext-val ] ) -- > -- > chunk-ext-name = token -- > chunk-ext-val = token / quoted-string

Reported by julian.reschke@gmx.de, migrated from https://trac.ietf.org/trac/httpbis/ticket/528

mnot commented 10 years ago

julian.reschke@gmx.de commented:

Indeed; quoted-string was changes not to allow line folding in 1966

mnot commented 10 years ago

julian.reschke@gmx.de commented:

From 2509:

remove redundant quoted-str-nf production, folding has been disallowed in quoted-string since 1966 (see #528)

mnot commented 10 years ago