mirror of https://github.com/aria2/aria2
Fixed the bug that --checksum is not working.
parent
4ff29f802f
commit
46e59c4cc3
|
@ -129,8 +129,8 @@ SharedHandle<RequestGroup> createRequestGroup
|
||||||
std::string hashType(p.first.first, p.first.second);
|
std::string hashType(p.first.first, p.first.second);
|
||||||
std::string hexDigest(p.second.first, p.second.second);
|
std::string hexDigest(p.second.first, p.second.second);
|
||||||
util::lowercase(hashType);
|
util::lowercase(hashType);
|
||||||
util::lowercase(hexDigest);
|
dctx->setDigest(hashType,
|
||||||
dctx->setDigest(hashType, hexDigest);
|
util::fromHex(hexDigest.begin(), hexDigest.end()));
|
||||||
}
|
}
|
||||||
#endif // ENABLE_MESSAGE_DIGEST
|
#endif // ENABLE_MESSAGE_DIGEST
|
||||||
rg->setDownloadContext(dctx);
|
rg->setDownloadContext(dctx);
|
||||||
|
|
Loading…
Reference in New Issue