fix page hash calculation
This commit is contained in:
@@ -10,7 +10,7 @@ class WpTarget < WebSite
|
|||||||
response = Browser.get(must_use_url)
|
response = Browser.get(must_use_url)
|
||||||
|
|
||||||
if response && WpTarget.valid_response_codes.include?(response.code)
|
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
|
return true if hash != error_404_hash && hash != homepage_hash
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user