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

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

From: Martin Thomson <martin.thomson@gmail.com>
Date: Mon, 23 Dec 2013 09:10:17 -0800
Message-ID: <CABkgnnXOVN6v8W9V1kcjo-mKaQOwEzxrMV-xFO+Tp1kDHpx=KA@mail.gmail.com>
To: Kari Hurtta <hurtta-ietf@elmme-mailer.org>
Cc: HTTPBIS working group mailing list <ietf-http-wg@w3.org>
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

This archive was generated by hypermail 2.3.1 : Tuesday, 1 March 2016 11:11:20 UTC