This commit is contained in:
David Broder-Rodgers 2016-12-19 08:45:21 +00:00
parent 0a007fc983
commit 637aae48e4

View File

@ -564,8 +564,8 @@ class FormulaAuditor
end
return unless @online
status_code, = curl_output "--connect-timeout", "15", "--output", "/dev/null", "--range", "0-0", \
"--write-out", "%{http_code}", homepage
status_code, = curl_output "--connect-timeout", "15", "--output", "/dev/null", "--range", "0-0",
"--write-out", "%{http_code}", homepage
return if status_code.start_with? "20"
problem "The homepage #{homepage} is not reachable (HTTP status code #{status_code})"
end