Fixed the bug that --checksum is not working.

pull/8/head
Tatsuhiro Tsujikawa 2012-01-08 01:15:58 +09:00
parent 4ff29f802f
commit 46e59c4cc3
1 changed files with 2 additions and 2 deletions

View File

@ -129,8 +129,8 @@ SharedHandle<RequestGroup> createRequestGroup
std::string hashType(p.first.first, p.first.second);
std::string hexDigest(p.second.first, p.second.second);
util::lowercase(hashType);
util::lowercase(hexDigest);
dctx->setDigest(hashType, hexDigest);
dctx->setDigest(hashType,
util::fromHex(hexDigest.begin(), hexDigest.end()));
}
#endif // ENABLE_MESSAGE_DIGEST
rg->setDownloadContext(dctx);