Re: [Technical Errata Reported] RFC7230 (4412)

On Thu, Jul 9, 2015 at 3:43 PM, Willy Tarreau <w@1wt.eu> wrote:

> On Thu, Jul 09, 2015 at 01:33:46PM -0500, Zhong Yu wrote:
> > The spec does allow a response like
> >
> > HTTP/1.1 200 OK
> > Content-Type: text/plain
> > Transfer-Encoding: gzip
> > Connection: close
>
> No it does not allow it as chunked is not last. It's in 3.3.1 :
>
>    If any transfer coding
>    other than chunked is applied to a request payload body, the sender
>    MUST apply chunked as the final transfer coding to ensure that the
>    message is properly framed.
>

This text talk about "REQUEST" only :) The next sentence talks about
"RESPONSE" -

> If any transfer coding other than chunked is applied to a response
payload body, the sender MUST either apply chunked as the final transfer
coding or terminate the message by closing the connection.


Apparently, the text is prune to misreading.

Zhong Yu
bayou.io

Received on Thursday, 9 July 2015 21:11:38 UTC