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

This commit is contained in:
martii
2014-07-20 10:57:18 +02:00
committed by [CST] Focus
parent 0149b27760
commit d71958ba8c
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;