fix page hash calculation

This commit is contained in:
dctabuyz
2015-01-06 19:10:22 +03:00
parent 6b9c9eb0ed
commit b81a4987d9

View File

@@ -10,7 +10,7 @@ class WpTarget < WebSite
response = Browser.get(must_use_url)
if response && WpTarget.valid_response_codes.include?(response.code)
hash = WebSite.page_hash(response.body)
hash = Digest::MD5.hexdigest(response.body)
return true if hash != error_404_hash && hash != homepage_hash
end