online audit: use GET instead of HEAD

I also removed the `-L` flag which is already present in
`HOMEBREW_CURL_ARGS`.

Closes Homebrew/homebrew#42352.

Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
This commit is contained in:
Baptiste Fontaine 2015-08-02 10:50:39 +02:00
parent b7732e80b4
commit 79678cb109

View File

@ -434,7 +434,7 @@ class FormulaAuditor
return unless @online
begin
nostdout { curl "--connect-timeout", "15", "-IL", "-o", "/dev/null", homepage }
nostdout { curl "--connect-timeout", "15", "-o", "/dev/null", homepage }
rescue ErrorDuringExecution
problem "The homepage is not reachable (curl exit code #{$?.exitstatus})"
end