Ignore:
Timestamp:
Aug 31, 2011, 6:23:29 PM (8 years ago)
Author:
fielding@…
Message:

Fix incorrect definition of line folding (obs-fold) from [351].
Remove optional WSP from chunked encoding grammar added in [353].
Do not use WSP anywhere (it is misleading because it dosn't match the real
definition of whitespace).

Related to #36

File:
1 edited

Legend:

Unmodified
Added
Removed
  • draft-ietf-httpbis/latest/httpbis.abnf

    r1406 r1425  
    4444Max-Forwards = 1*DIGIT
    4545Method = token
    46 OWS = *( [ obs-fold ] WSP )
     46OWS = *( SP / HTAB / obs-fold )
    4747Pragma = *( "," OWS ) pragma-directive *( OWS "," [ OWS pragma-directive ] )
    4848Proxy-Authenticate = *( "," OWS ) challenge *( OWS "," [ OWS challenge ] )
    4949Proxy-Authorization = credentials
    50 RWS = 1*( [ obs-fold ] WSP )
     50RWS = 1*( SP / HTAB / obs-fold )
    5151Range = byte-ranges-specifier / other-ranges-specifier
    52 Reason-Phrase = *( WSP / VCHAR / obs-text )
     52Reason-Phrase = *( HTAB / SP / VCHAR / obs-text )
    5353Referer = absolute-URI / partial-URI
    5454Request = Request-Line *( header-field CRLF ) CRLF [ message-body ]
     
    9191challenge = auth-scheme [ 1*SP ( b64token / [ ( "," / auth-param ) *( OWS "," [ OWS auth-param ] ) ] ) ]
    9292charset = token
    93 chunk = chunk-size *WSP [ chunk-ext ] CRLF chunk-data CRLF
     93chunk = chunk-size [ chunk-ext ] CRLF chunk-data CRLF
    9494chunk-data = 1*OCTET
    95 chunk-ext = *( ";" *WSP chunk-ext-name [ "=" chunk-ext-val ] *WSP )
     95chunk-ext = *( ";" chunk-ext-name [ "=" chunk-ext-val ] )
    9696chunk-ext-name = token
    9797chunk-ext-val = token / quoted-str-nf
     
    132132expectation-extension = token [ "=" ( token / quoted-string ) *expect-params ]
    133133extension-pragma = token [ "=" ( token / quoted-string ) ]
    134 field-content = *( WSP / VCHAR / obs-text )
     134field-content = *( HTAB / SP / VCHAR / obs-text )
    135135field-name = token
    136 field-value = *( field-content / OWS )
     136field-value = *( field-content / obs-fold )
    137137first-byte-pos = 1*DIGIT
    138 header-field = field-name ":" OWS field-value OWS
     138header-field = field-name ":" OWS field-value BWS
    139139hour = 2DIGIT
    140140http-URI = "http://" authority path-abempty [ "?" query ]
     
    144144language-tag = <Language-Tag, defined in [RFC5646], Section 2.1>
    145145last-byte-pos = 1*DIGIT
    146 last-chunk = 1*"0" *WSP [ chunk-ext ] CRLF
     146last-chunk = 1*"0" [ chunk-ext ] CRLF
    147147mailbox = <mailbox, defined in [RFC5322], Section 3.4>
    148148media-range = ( "*/*" / ( type "/*" ) / ( type "/" subtype ) ) *( OWS ";" OWS parameter )
     
    164164
    165165obs-date = rfc850-date / asctime-date
    166 obs-fold = CRLF
     166obs-fold = CRLF ( SP / HTAB )
    167167obs-text = %x80-FF
    168168opaque-tag = quoted-string
     
    186186 / %x5D-7E ; ']'-'~'
    187187 / obs-text
    188 qdtext-nf = WSP / "!" / %x23-5B ; '#'-'['
     188qdtext-nf = HTAB / SP / "!" / %x23-5B ; '#'-'['
    189189 / %x5D-7E ; ']'-'~'
    190190 / obs-text
    191191query = <query, defined in [RFC3986], Section 3.4>
    192 quoted-cpair = "\" ( WSP / VCHAR / obs-text )
    193 quoted-pair = "\" ( WSP / VCHAR / obs-text )
     192quoted-cpair = "\" ( HTAB / SP / VCHAR / obs-text )
     193quoted-pair = "\" ( HTAB / SP / VCHAR / obs-text )
    194194quoted-str-nf = DQUOTE *( qdtext-nf / quoted-pair ) DQUOTE
    195195quoted-string = DQUOTE *( qdtext / quoted-pair ) DQUOTE
Note: See TracChangeset for help on using the changeset viewer.