Re: #528, Redundant rule? quoted-str-nf

Might be neater to use the new 'word' rule?


-- > chunk-ext      = *( ";" chunk-ext-name [ "=" chunk-ext-val ] )
-- >
-- > chunk-ext-name = token
-- > chunk-ext-val  = word


-- > word           = token / quoted-string


Best Regards

Simon

On 13 Dec 2013, at 12:22, Julian Reschke <julian.reschke@gmx.de> wrote:

> On 2013-12-13 11:36, Simon Yarde wrote:
>> 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
>> 
>> 
>> Best Regards
>> 
>> Simon
> 
> Good catch. quoted-string changed in [1966] not to allow line folding.
> 
> Fixed with <http://trac.tools.ietf.org/wg/httpbis/trac/changeset/2509>.
> 
> Best regards, Julian
> 

Received on Monday, 16 December 2013 11:07:01 UTC