Re: Issue with "bytes" Range Unit and live streaming

> On Apr 15, 2016, at 1:00 PM, Craig Pratt <> wrote:

> [cp] Remy answered this: Content-Length is not expressly required (since that would prevent chunked and other transfer encodings). But the Content-Range header can only communicate a fixed response.

That is incorrect.  See RFC7233, Sec 4.2:

   For byte ranges, a sender SHOULD indicate the complete length of the
   representation from which the range has been extracted, unless the
   complete length is unknown or difficult to determine.  An asterisk
   character ("*") in place of the complete-length indicates that the
   representation length was unknown when the header field was

   The following example illustrates when the complete length of the
   selected representation is known by the sender to be 1234 bytes:

     Content-Range: bytes 42-1233/1234

   and this second example illustrates when the complete length is

     Content-Range: bytes 42-1233/*

There is no need for another range unit.


Received on Friday, 15 April 2016 20:25:00 UTC