Add --head to curl to speedup audit

This commit is contained in:
Martin Schimandl 2017-10-14 17:47:08 +02:00
parent e363889d27
commit b2abc0b3ab

View File

@ -318,7 +318,7 @@ module Hbc
curl_executable, *args = curl_args( curl_executable, *args = curl_args(
"--compressed", "--location", "--fail", "--compressed", "--location", "--fail",
"--write-out", "%{http_code} %{url_effective}", "--write-out", "%{http_code} %{url_effective}",
"--output", "/dev/null", "--output", "/dev/null", "--head",
url_to_access, url_to_access,
user_agent: :fake user_agent: :fake
) )