Welcome! Log In Create A New Profile

Advanced

Missing Content-Length header in large byte-range requests

Posted by akaufman 
Missing Content-Length header in large byte-range requests
November 09, 2021 02:10AM
Hi All

I'm using NGINX as a reverse proxy, with a video origin server "behind" it.
NGINX caching is disabled.
Client's byte-range requests are forwarded as-is to the origin, which replies with the proper bytes and the proper Content-Length header.

When the client requests for a byte-range with a total size of less than 2k bytes, content-length header is properly returned to the client.
When the byte-range is bigger than 2k bytes, NGINX is dropping the content-length from the response that's coming from the origin.

Any idea why that is happening?
How can I make NGINX always keep the content-length header, even for byte ranges over 2k bytes?

thanks
Adi
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 181
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready