mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-28 16:01:10 +02:00
nhttpd: disable range handling for cached content
Origin commit data
------------------
Commit: ee1ab08bd4
Author: martii <m4rtii@gmx.de>
Date: 2014-09-23 (Tue, 23 Sep 2014)
This commit is contained in:
@@ -301,7 +301,7 @@ std::string CyhookHandler::BuildHeader(bool cache) {
|
||||
|
||||
strftime(timeStr, sizeof(timeStr), RFC1123FMT, gmtime(&mod_time));
|
||||
result += string_printf("Last-Modified: %s\r\n", timeStr);
|
||||
if (status == HANDLED_SENDFILE) {
|
||||
if (status == HANDLED_SENDFILE && !cached) {
|
||||
result += string_printf("Accept-Ranges: bytes\r\n");
|
||||
result += string_printf("Content-Length: %lld\r\n", RangeEnd - RangeStart + 1);
|
||||
if (httpStatus == HTTP_PARTIAL_CONTENT)
|
||||
|
Reference in New Issue
Block a user