diff --git a/src/Http/HttpFileManager.cpp b/src/Http/HttpFileManager.cpp index 735c053c..2d156e44 100644 --- a/src/Http/HttpFileManager.cpp +++ b/src/Http/HttpFileManager.cpp @@ -577,7 +577,7 @@ void HttpResponseInvokerImp::responseFile(const StrCaseMap &requestHeader, //分节下载 code = 206; 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) { iRangeEnd = fileSize - 1; }