mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-23 03:10:04 +08:00
修复http文件服务器相关bug
This commit is contained in:
parent
8cbec43ee8
commit
f54e02f511
@ -577,7 +577,7 @@ void HttpResponseInvokerImp::responseFile(const StrCaseMap &requestHeader,
|
|||||||
//分节下载
|
//分节下载
|
||||||
code = 206;
|
code = 206;
|
||||||
iRangeStart = atoll(FindField(strRange.data(), "bytes=", "-").data());
|
iRangeStart = atoll(FindField(strRange.data(), "bytes=", "-").data());
|
||||||
iRangeEnd = atoll(FindField(strRange.data(), "-", "\r\n").data());
|
iRangeEnd = atoll(FindField(strRange.data(), "-", nullptr).data());
|
||||||
if (iRangeEnd == 0) {
|
if (iRangeEnd == 0) {
|
||||||
iRangeEnd = fileSize - 1;
|
iRangeEnd = fileSize - 1;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user