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

#434: mention in header field considerations that leading/trailing WS is lossy

From: Julian Reschke <julian.reschke@gmx.de>
Date: Tue, 19 Feb 2013 13:59:16 +0100
Message-ID: <51237724.3070005@gmx.de>
To: HTTP Working Group <ietf-http-wg@w3.org>
...thus this needs to be considered when defining new header fields (-> 
quoted-string).

See <‚Äč 
http://stackoverflow.com/questions/14910794/value-starting-with-a-space-in-httpurlconnection-add-request-property>

Proposed patch (see 
<http://trac.tools.ietf.org/wg/httpbis/trac/attachment/ticket/434/>): 
add the paragraph:

 >  Leading and trailing whitespace in field values is removed upon field
 >  parsing (Section 3.2.4 of [Part1]).  Field definitions where leading
 >  or trailing whitespace in values is significant will have to use a
 >  syntax such as in the quoted-string ABNF production.

Best regards, Julian
Received on Tuesday, 19 February 2013 12:59:50 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 19 February 2013 12:59:56 GMT