Ignore:
Timestamp:
Feb 20, 2012, 11:26:30 PM (8 years ago)
Author:
fielding@…
Message:

#335 wording of line-folding rule should refer to field-value, not field-content.
Also realized that OWS, RWS, and BWS should not include obs-fold, since all
folding is isolated within the field parsing and not allowed anywhere else. #36

File:
1 edited

Legend:

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

    r1544 r1546  
    12171217  <x:anchor-alias value="field-name"/>
    12181218  <x:anchor-alias value="field-value"/>
    1219   <x:anchor-alias value="OWS"/>
     1219  <x:anchor-alias value="obs-fold"/>
    12201220<t>
    12211221   Each HTTP header field consists of a case-insensitive field name
    12221222   followed by a colon (":"), optional whitespace, and the field value.
    12231223</t>
    1224 <figure><artwork type="abnf2616"><iref primary="true" item="Grammar" subitem="header-field"/><iref primary="true" item="Grammar" subitem="field-name"/><iref primary="true" item="Grammar" subitem="field-value"/><iref primary="true" item="Grammar" subitem="field-content"/>
     1224<figure><artwork type="abnf2616"><iref primary="true" item="Grammar" subitem="header-field"/><iref primary="true" item="Grammar" subitem="field-name"/><iref primary="true" item="Grammar" subitem="field-value"/><iref primary="true" item="Grammar" subitem="field-content"/><iref primary="true" item="Grammar" subitem="obs-fold"/>
    12251225  <x:ref>header-field</x:ref>   = <x:ref>field-name</x:ref> ":" <x:ref>OWS</x:ref> <x:ref>field-value</x:ref> <x:ref>BWS</x:ref>
    12261226  <x:ref>field-name</x:ref>     = <x:ref>token</x:ref>
    12271227  <x:ref>field-value</x:ref>    = *( <x:ref>field-content</x:ref> / <x:ref>obs-fold</x:ref> )
    12281228  <x:ref>field-content</x:ref>  = *( <x:ref>HTAB</x:ref> / <x:ref>SP</x:ref> / <x:ref>VCHAR</x:ref> / <x:ref>obs-text</x:ref> )
     1229  <x:ref>obs-fold</x:ref>       = <x:ref>CRLF</x:ref> ( <x:ref>SP</x:ref> / <x:ref>HTAB</x:ref> )
     1230                 ; obsolete line folding
     1231                 ; see <xref target="field.parsing"/>
    12291232</artwork></figure>
    12301233<t>
     
    13181321  <x:anchor-alias value="OWS"/>
    13191322  <x:anchor-alias value="RWS"/>
    1320   <x:anchor-alias value="obs-fold"/>
    13211323</t>
    13221324<figure><artwork type="abnf2616"><iref primary="true" item="Grammar" subitem="OWS"/><iref primary="true" item="Grammar" subitem="RWS"/><iref primary="true" item="Grammar" subitem="BWS"/>
    1323   <x:ref>OWS</x:ref>            = *( <x:ref>SP</x:ref> / <x:ref>HTAB</x:ref> / obs-fold )
     1325  <x:ref>OWS</x:ref>            = *( <x:ref>SP</x:ref> / <x:ref>HTAB</x:ref> )
    13241326                 ; "optional" whitespace
    1325   <x:ref>RWS</x:ref>            = 1*( <x:ref>SP</x:ref> / <x:ref>HTAB</x:ref> / obs-fold )
     1327  <x:ref>RWS</x:ref>            = 1*( <x:ref>SP</x:ref> / <x:ref>HTAB</x:ref> )
    13261328                 ; "required" whitespace
    13271329  <x:ref>BWS</x:ref>            = <x:ref>OWS</x:ref>
    13281330                 ; "bad" whitespace
    1329   <x:ref>obs-fold</x:ref>       = <x:ref>CRLF</x:ref> ( <x:ref>SP</x:ref> / <x:ref>HTAB</x:ref> )
    1330                  ; obsolete line folding
    1331                  ; see <xref target="field.parsing"/>
    13321331</artwork></figure>
    13331332</section>
     
    13581357   (<xref target="internet.media.type.message.http"/>).
    13591358   HTTP senders &MUST-NOT; produce messages that include line folding
    1360    (i.e., that contain any field-content that matches the obs-fold rule) unless
     1359   (i.e., that contain any field-value that matches the obs-fold rule) unless
    13611360   the message is intended for packaging within the message/http media type.
    13621361   HTTP recipients &SHOULD; accept line folding and replace any embedded
     
    50355034<x:ref>Method</x:ref> = token
    50365035
    5037 <x:ref>OWS</x:ref> = *( SP / HTAB / obs-fold )
    5038 
    5039 <x:ref>RWS</x:ref> = 1*( SP / HTAB / obs-fold )
     5036<x:ref>OWS</x:ref> = *( SP / HTAB )
     5037
     5038<x:ref>RWS</x:ref> = 1*( SP / HTAB )
    50405039<x:ref>Reason-Phrase</x:ref> = *( HTAB / SP / VCHAR / obs-text )
    50415040<x:ref>Request-Line</x:ref> = Method SP request-target SP HTTP-Version CRLF
Note: See TracChangeset for help on using the changeset viewer.