mirror of https://github.com/aria2/aria2
Removed redundant MessageDigest::supports() call.
MessageDigest::supports() will be called from MessageDigest::isValidHash() later in the function.pull/2/head
parent
73f049bf9a
commit
8ec6cd1c44
|
@ -408,9 +408,6 @@ void HttpResponse::getDigest(std::vector<Checksum>& result) const
|
|||
break;
|
||||
}
|
||||
util::lowercase(hashType);
|
||||
if(!MessageDigest::supports(hashType)) {
|
||||
continue;
|
||||
}
|
||||
std::string hexDigest = util::toHex(Base64::decode(digest));
|
||||
if(!MessageDigest::isValidHash(hashType, hexDigest)) {
|
||||
continue;
|
||||
|
|
Loading…
Reference in New Issue