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

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

From: Simon Yarde <simonyarde@me.com>
Date: Mon, 16 Dec 2013 11:05:28 +0000
Cc: ietf-http-wg@w3.org
Message-id: <29823281-70BC-4342-A040-09D58C5F79D1@me.com>
To: Julian Reschke <julian.reschke@gmx.de>
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

This archive was generated by hypermail 2.3.1 : Tuesday, 1 March 2016 11:11:20 UTC