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:
parent
b7732e80b4
commit
79678cb109
@ -434,7 +434,7 @@ class FormulaAuditor
|
|||||||
|
|
||||||
return unless @online
|
return unless @online
|
||||||
begin
|
begin
|
||||||
nostdout { curl "--connect-timeout", "15", "-IL", "-o", "/dev/null", homepage }
|
nostdout { curl "--connect-timeout", "15", "-o", "/dev/null", homepage }
|
||||||
rescue ErrorDuringExecution
|
rescue ErrorDuringExecution
|
||||||
problem "The homepage is not reachable (curl exit code #{$?.exitstatus})"
|
problem "The homepage is not reachable (curl exit code #{$?.exitstatus})"
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user