Possible fix for #169

This commit is contained in:
erwanlr
2013-04-16 14:14:20 +02:00
parent 7143c7ffe9
commit bb88a1105e
3 changed files with 45 additions and 18 deletions

View File

@@ -39,7 +39,7 @@ module Typhoeus
#
# @return [ Boolean ]
def has_valid_hash?(error_404_hash, homepage_hash)
body_hash = Digest::MD5.hexdigest(self.body)
body_hash = WebSite.page_hash(self)
body_hash != error_404_hash && body_hash != homepage_hash
end