You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Cédric Damioli <cd...@apache.org> on 2017/07/27 18:08:42 UTC

Content-Range and Range headers

Hi,

For the first time in my looooong-Cocoon history, I tried to use the 
ResourceReader in combination with Range/Content-Range headers for video 
streaming.

It seems to me that the implementation does not respect the HTTP spec.
According to the spec, asking for a 100 bytes resource with header

     Range "bytes=0-"

should respond

     Content-Range "bytes 0-99/100"

where Cocoon currently responds

     Content-Range "0-100/100"

Does someone already use this feature ? Was it working ?
I could patch, but I don't want to break anything.

Regards,

-- 
Cédric Damioli
CMS - Java - Open Source
www.ametys.org