Ignore:
Timestamp:
Oct 7, 2009, 7:52:42 AM (10 years ago)
Author:
julian.reschke@…
Message:

Disallow line folding in chunk extensions (see #173)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • draft-ietf-httpbis/latest/p1-messaging.xml

    r706 r707  
    18341834  <x:anchor-alias value="last-chunk"/>
    18351835  <x:anchor-alias value="trailer-part"/>
     1836  <x:anchor-alias value="quoted-str-nf"/>
     1837  <x:anchor-alias value="qdtext-nf"/>
    18361838<t>
    18371839   The chunked encoding modifies the body of a message in order to
     
    18421844   received the full message.
    18431845</t>
    1844 <figure><artwork type="abnf2616"><iref primary="true" item="Grammar" subitem="Chunked-Body"/><iref primary="true" item="Grammar" subitem="chunk"/><iref primary="true" item="Grammar" subitem="chunk-size"/><iref primary="true" item="Grammar" subitem="last-chunk"/><iref primary="true" item="Grammar" subitem="chunk-ext"/><iref primary="true" item="Grammar" subitem="chunk-ext-name"/><iref primary="true" item="Grammar" subitem="chunk-ext-val"/><iref primary="true" item="Grammar" subitem="chunk-data"/><iref primary="true" item="Grammar" subitem="trailer-part"/>
     1846<figure><artwork type="abnf2616"><iref primary="true" item="Grammar" subitem="Chunked-Body"/><iref primary="true" item="Grammar" subitem="chunk"/><iref primary="true" item="Grammar" subitem="chunk-size"/><iref primary="true" item="Grammar" subitem="last-chunk"/><iref primary="true" item="Grammar" subitem="chunk-ext"/><iref primary="true" item="Grammar" subitem="chunk-ext-name"/><iref primary="true" item="Grammar" subitem="chunk-ext-val"/><iref primary="true" item="Grammar" subitem="chunk-data"/><iref primary="true" item="Grammar" subitem="trailer-part"/><iref primary="true" item="Grammar" subitem="quoted-str-nf"/><iref primary="true" item="Grammar" subitem="qdtext-nf"/>
    18451847  <x:ref>Chunked-Body</x:ref>   = *<x:ref>chunk</x:ref>
    18461848                   <x:ref>last-chunk</x:ref>
     
    18561858                      [ "=" <x:ref>chunk-ext-val</x:ref> ] *WSP )
    18571859  <x:ref>chunk-ext-name</x:ref> = <x:ref>token</x:ref>
    1858   <x:ref>chunk-ext-val</x:ref>  = <x:ref>token</x:ref> / <x:ref>quoted-string</x:ref>
     1860  <x:ref>chunk-ext-val</x:ref>  = <x:ref>token</x:ref> / <x:ref>quoted-str-nf</x:ref>
    18591861  <x:ref>chunk-data</x:ref>     = 1*<x:ref>OCTET</x:ref> ; a sequence of chunk-size octets
    18601862  <x:ref>trailer-part</x:ref>   = *( <x:ref>entity-header</x:ref> <x:ref>CRLF</x:ref> )
     1863 
     1864  <x:ref>quoted-str-nf</x:ref>  = <x:ref>DQUOTE</x:ref> *( <x:ref>qdtext-nf</x:ref> / <x:ref>quoted-pair</x:ref> ) <x:ref>DQUOTE</x:ref>
     1865                 ; like <x:ref>quoted-string</x:ref>, but disallowing line folding
     1866  <x:ref>qdtext-nf</x:ref>      = <x:ref>WSP</x:ref> / %x21 / %x23-5B / %x5D-7E / <x:ref>obs-text</x:ref>
     1867                 ; <x:ref>WSP</x:ref> / &lt;<x:ref>VCHAR</x:ref> except <x:ref>DQUOTE</x:ref> and "\"&gt; / <x:ref>obs-text</x:ref>
    18611868</artwork></figure>
    18621869<t>
     
    46404647</t>
    46414648<t>
    4642   Clarification that the chunk length does not include
    4643   the count of the octets in the chunk header and trailer.
    4644   (<xref target="chunked.encoding"/>)
    4645 </t>
    4646 <t>
    46474649  Require that invalid whitespace around field-names be rejected.
    46484650  (<xref target="header.fields"/>)
     
    46524654  components of RFC3986.
    46534655  (<xref target="request-target"/>)
     4656</t>
     4657<t>
     4658  Clarification that the chunk length does not include the count of the octets
     4659  in the chunk header and trailer. Furthermore disallowed line folding
     4660  in chunk extensions.
     4661  (<xref target="chunked.encoding"/>)
    46544662</t>
    46554663<t>
     
    47334741<x:ref>chunk-ext</x:ref> = *( ";" *WSP chunk-ext-name [ "=" chunk-ext-val ] *WSP )
    47344742<x:ref>chunk-ext-name</x:ref> = token
    4735 <x:ref>chunk-ext-val</x:ref> = token / quoted-string
     4743<x:ref>chunk-ext-val</x:ref> = token / quoted-str-nf
    47364744<x:ref>chunk-size</x:ref> = 1*HEXDIG
    47374745<x:ref>comment</x:ref> = "(" *( ctext / quoted-cpair / comment ) ")"
     
    48114819 / %x5D-7E ; ']'-'~'
    48124820 / obs-text
     4821<x:ref>qdtext-nf</x:ref> = WSP / "!" / %x23-5B ; '#'-'['
     4822 / %x5D-7E ; ']'-'~'
     4823 / obs-text
    48134824<x:ref>query</x:ref> = &lt;query, defined in [RFC3986], Section 3.4&gt;
    48144825<x:ref>quoted-cpair</x:ref> = "\" ( WSP / VCHAR / obs-text )
    48154826<x:ref>quoted-pair</x:ref> = "\" ( WSP / VCHAR / obs-text )
     4827<x:ref>quoted-str-nf</x:ref> = DQUOTE *( qdtext-nf / quoted-pair ) DQUOTE
    48164828<x:ref>quoted-string</x:ref> = DQUOTE *( qdtext / quoted-pair ) DQUOTE
    48174829<x:ref>qvalue</x:ref> = ( "0" [ "." *3DIGIT ] ) / ( "1" [ "." *3"0" ] )
     
    52725284    </t>
    52735285    <t>
     5286      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/173"/>:
     5287      "CR and LF in chunk extension values"
     5288    </t>
     5289    <t>
    52745290      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/184"/>:
    52755291      "HTTP/0.9 support"
Note: See TracChangeset for help on using the changeset viewer.