Removed redundant MessageDigest::supports() call.

MessageDigest::supports() will be called from
MessageDigest::isValidHash() later in the function.
pull/2/head
Tatsuhiro Tsujikawa 2011-08-23 17:23:46 +09:00
parent 73f049bf9a
commit 8ec6cd1c44
1 changed files with 0 additions and 3 deletions

View File

@ -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;