Ignore:
Timestamp:
20/05/13 00:24:21 (10 years ago)
Author:
fielding@…
Message:

Change header field trailing whitespace from BWS to OWS to be consistent with suggested in-place white-out; demote an untargeted requirement on removing leading and trailing whitespace to a suggestion on parser handling of field-value to be consistent with the ABNF; addresses #442

File:
1 edited

Legend:

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

    r2262 r2263  
    11661166<t>
    11671167   Each HTTP header field consists of a case-insensitive field name
    1168    followed by a colon (":"), optional whitespace, and the field value.
     1168   followed by a colon (":"), optional leading whitespace, the field value,
     1169   and optional trailing whitespace.
    11691170</t>
    11701171<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"/>
    1171   <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>
     1172  <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>OWS</x:ref>
    11721173  <x:ref>field-name</x:ref>     = <x:ref>token</x:ref>
    11731174  <x:ref>field-value</x:ref>    = *( <x:ref>field-content</x:ref> / <x:ref>obs-fold</x:ref> )
     
    12981299   A field value is preceded by optional whitespace (OWS); a single SP is
    12991300   preferred. The field value does not include any leading or trailing white
    1300    space: OWS occurring before the first non-whitespace octet of the
    1301    field value or after the last non-whitespace octet of the field value
    1302    is ignored and &SHOULD; be removed before further processing (as this does
    1303    not change the meaning of the header field).
     1301   space: OWS occurring before the first non-whitespace octet of the field
     1302   value or after the last non-whitespace octet of the field value ought to be
     1303   excluded by parsers when extracting the field value from a header field.
    13041304</t>
    13051305<t>
     
    51025102<x:ref>field-value</x:ref> = *( field-content / obs-fold )
    51035103
    5104 <x:ref>header-field</x:ref> = field-name ":" OWS field-value BWS
     5104<x:ref>header-field</x:ref> = field-name ":" OWS field-value OWS
    51055105<x:ref>http-URI</x:ref> = "http://" authority path-abempty [ "?" query ]
    51065106<x:ref>https-URI</x:ref> = "https://" authority path-abempty [ "?" query ]
Note: See TracChangeset for help on using the changeset viewer.