From 7f9e70e5c85031fe0b35b7326562eadf1f90728e Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Mon, 13 Sep 2010 11:53:38 +0000 Subject: 2010-09-13 Tatsuhiro Tsujikawa Updated doc * src/FtpNegotiationCommand.cc * src/HttpResponseCommand.cc * src/RequestGroup.cc --- src/HttpResponseCommand.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/HttpResponseCommand.cc') diff --git a/src/HttpResponseCommand.cc b/src/HttpResponseCommand.cc index e3f278f9..32404ba1 100644 --- a/src/HttpResponseCommand.cc +++ b/src/HttpResponseCommand.cc @@ -390,9 +390,13 @@ bool HttpResponseCommand::handleOtherEncoding // For zero-length file, check existing file comparing its size if(!chunkedUsed && getDownloadContext()->knowsTotalLength() && getRequestGroup()->downloadFinishedByFileLength()) { + // TODO If metalink file does not contain size and it contains + // hash and file is not zero length, but remote server says the + // file size is 0, no hash check is performed in the current + // implementation. See also + // FtpNegotiationCommand::onFileSizeDetermined() getRequestGroup()->initPieceStorage(); getPieceStorage()->markAllPiecesDone(); - // This is zero-size file, so hash check is no use. getDownloadContext()->setChecksumVerified(true); getLogger()->notice(MSG_DOWNLOAD_ALREADY_COMPLETED, util::itos(getRequestGroup()->getGID()).c_str(), -- cgit