utils/curl: tweak style.

This commit is contained in:
Mike McQuaid 2021-04-22 13:57:28 +01:00
parent af594739dc
commit d81b898117
No known key found for this signature in database
GPG Key ID: 48A898132FD8EE70

View File

@ -168,9 +168,8 @@ module Utils
details[:headers].match?(/^Set-Cookie: incap_ses_/i) details[:headers].match?(/^Set-Cookie: incap_ses_/i)
end end
def curl_check_http_content( def curl_check_http_content(url, url_type, specs: {}, user_agents: [:default],
url, url_type, specs: {}, user_agents: [:default], check_content: false, strict: false check_content: false, strict: false)
)
return unless url.start_with? "http" return unless url.start_with? "http"
secure_url = url.sub(/\Ahttp:/, "https:") secure_url = url.sub(/\Ahttp:/, "https:")