Fix Content-Range generation bug

(cherry picked from commit 9f444a680e)
This commit is contained in:
Peng 2013-10-15 20:28:55 +08:00 committed by Marcelo Roberto Jimenez
parent c5777ae747
commit 4f630b1213

View File

@ -867,8 +867,8 @@ static int CreateHTTPRangeResponseHeader(
sizeof(Instr->RangeHeader),
"CONTENT-RANGE: bytes %" PRId64
"-%" PRId64 "/%" PRId64 "\r\n",
(int64_t)(FileLength - LastByte + 1),
(int64_t)FileLength,
(int64_t)(FileLength - LastByte),
(int64_t)FileLength - 1,
(int64_t)FileLength);
}
if (rc < 0 || (unsigned int) rc >= sizeof(Instr->RangeHeader)) {