Re: 8.1.2 Examples (Re: 6.6 PUSH_PROMISE (Re: draft-ietf-httpbis-http2-08 / 5.1. Stream States))

On 21 December 2013 03:08, Kari Hurtta <hurtta-ietf@elmme-mailer.org> wrote:
>   HTTP/1.1 200 OK               HEADERS
>   Content-Type: image/jpeg ===>   - END_STREAM
>   Content-Length: 123             + END_HEADERS
>   Transfer-Encoding: chunked        :status        = 200
>   TE: trailers                      content-length = 123
>   123                               content-type   = image/jpeg
>   {binary data}
>   0                             DATA
>   Foo: bar                        - END_STREAM
>                                     {binary data}
>
>                                 HEADERS
>                                   + END_STREAM
>                                   + END_HEADERS
>                                     foo: bar

Yes, this is in error.  content-length is always valid in HTTP/2.0,
but not in 1.1 when there is Transfer-Encoding.

https://github.com/http2/http2-spec/commit/6cf73458aef62169db4a3a65fe520111a71f1d78

Received on Monday, 23 December 2013 17:10:49 UTC