Fix Content-Range generation bug
This commit is contained in:
parent
8e3a71905b
commit
9f444a680e
@ -864,8 +864,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)) {
|
||||
|
Loading…
Reference in New Issue
Block a user