diff options
Diffstat (limited to 'src/HttpResponseCommand.cc')
| -rw-r--r-- | src/HttpResponseCommand.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/HttpResponseCommand.cc b/src/HttpResponseCommand.cc index f9242591..70af2e89 100644 --- a/src/HttpResponseCommand.cc +++ b/src/HttpResponseCommand.cc @@ -180,7 +180,7 @@ bool HttpResponseCommand::executeInternal() int statusCode = httpResponse->getStatusCode(); if(statusCode == 304) { - uint64_t totalLength = httpResponse->getEntityLength(); + off_t totalLength = httpResponse->getEntityLength(); getFileEntry()->setLength(totalLength); getRequestGroup()->initPieceStorage(); getPieceStorage()->markAllPiecesDone(); @@ -245,7 +245,7 @@ bool HttpResponseCommand::executeInternal() } if(!getPieceStorage()) { util::removeMetalinkContentTypes(getRequestGroup()); - uint64_t totalLength = httpResponse->getEntityLength(); + off_t totalLength = httpResponse->getEntityLength(); getFileEntry()->setLength(totalLength); if(getFileEntry()->getPath().empty()) { getFileEntry()->setPath |
