Retry when requested range not satisfied

pull/2222/head
Levi Aul 2024-06-12 17:17:03 -07:00
parent 999a5915b2
commit 8dd0805d88
1 changed files with 1 additions and 1 deletions

View File

@ -78,7 +78,7 @@ void HttpResponse::validateResponse() const
// compare the received range against the requested range
auto responseRange = httpHeader_->getRange();
if (!httpRequest_->isRangeSatisfied(responseRange)) {
throw DL_ABORT_EX2(
throw DL_RETRY_EX2(
fmt(EX_INVALID_RANGE_HEADER, httpRequest_->getStartByte(),
httpRequest_->getEndByte(), httpRequest_->getEntityLength(),
responseRange.startByte, responseRange.endByte,