nhttpd: let sendfile() support files >= 2GB

Origin commit data
------------------
Commit: d71958ba8c
Author: martii <m4rtii@gmx.de>
Date: 2014-07-20 (Sun, 20 Jul 2014)
This commit is contained in:
martii
2014-07-20 10:57:18 +02:00
committed by [CST] Focus
parent 84279dba73
commit 2b12212bdc
9 changed files with 50 additions and 34 deletions

View File

@@ -304,8 +304,8 @@ std::string CyhookHandler::BuildHeader(bool cache) {
strftime(timeStr, sizeof(timeStr), RFC1123FMT, gmtime(&mod_time));
result += string_printf(
"Last-Modified: %s\r\nContent-Length: %ld\r\n", timeStr,
GetContentLength());
"Last-Modified: %s\r\nContent-Length: %lld\r\n", timeStr,
(long long) GetContentLength());
}
result += "\r\n"; // End of Header
break;