Re: [closed] Re: Wrong CRLF in http-request-006 on tests.xproc.org

2009/4/14 Florent Georges wrote:

>  The entity content for textual media types in this resources does
> use LF as end line delimiter (for instance the first part, of type
> text/html.)  I am not sure those should be translated to CR/LF as
> well...

  http://tools.ietf.org/html/rfc2616#section-19.4.2 gives some
thoughts on the subject:

    19.4.2 Conversion to Canonical Form


    RFC 2045 [7] requires that an Internet mail entity be
    converted to canonical form prior to being transferred, as
    described in section 4 of RFC 2049 [48]. Section 3.7.1 of
    this document describes the forms allowed for subtypes of the
    "text" media type when transmitted over HTTP. RFC 2046
    requires that content with a type of "text" represent line
    breaks as CRLF and forbids the use of CR or LF outside of
    line break sequences. HTTP allows CRLF, bare CR, and bare LF
    to indicate a line break within text content when a message
    is transmitted over HTTP.

  So I would say the test is correct now :-)

  Hope that helps,

-- 
Florent Georges
http://www.fgeorges.org/

Received on Tuesday, 14 April 2009 14:44:36 UTC