diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2010-09-13 11:53:38 +0000 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2010-09-13 11:53:38 +0000 |
| commit | 7f9e70e5c85031fe0b35b7326562eadf1f90728e (patch) | |
| tree | f97cad439bc19740b72e21c8b7f56c48582eff5d /src/HttpResponseCommand.cc | |
| parent | 97953dd1ae3e927e7e7cc18f0e9b7a62326ca9e4 (diff) | |
2010-09-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Updated doc
* src/FtpNegotiationCommand.cc
* src/HttpResponseCommand.cc
* src/RequestGroup.cc
Diffstat (limited to 'src/HttpResponseCommand.cc')
| -rw-r--r-- | src/HttpResponseCommand.cc | 6 |
1 files changed, 5 insertions, 1 deletions
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(), |
