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

Re: Header field-name token and leading spaces

From: Karl Dubost <karl@la-grange.net>
Date: Sun, 3 Mar 2013 17:57:01 -0500
Message-Id: <DDACD804-ECE5-4CA8-A6B1-2833887A4E14@la-grange.net>
Cc: HTTP Working Group <ietf-http-wg@w3.org>
To: Poul-Henning Kamp <phk@phk.freebsd.dk>

Le 3 mars 2013 à 14:21, Poul-Henning Kamp a écrit :
> Actually, something is said:  It is a continuation line for
> the previous header.

Ah indeed.
    obs-fold       = CRLF ( SP / HTAB )
                   ; obsolete line folding
                   ; see Section 3.2.4

ok. cool. So it should be forbidden in production. It is not the intent of the author with:

request.add_header(' foo', 'bar')
→ " foo:bar"

Cool Thanks!


-- 
Karl Dubost
http://www.la-grange.net/karl/
Received on Sunday, 3 March 2013 22:57:01 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Sunday, 3 March 2013 22:57:09 GMT