Commit 63f72b9d authored by Vitaly Lipatov's avatar Vitaly Lipatov

eget fix: support HTTP/2 in URL accessibility checks

parent 66ff436b
...@@ -1718,13 +1718,13 @@ url_get_headers() ...@@ -1718,13 +1718,13 @@ url_get_headers()
url_check_accessible() url_check_accessible()
{ {
local URL="$1" local URL="$1"
url_get_response "$URL" | grep "HTTP/[0-9]\.[0-9] [0-9]" | tail -n1 | grep -q -w "200\|404" url_get_response "$URL" | grep "HTTP/[12]" | tail -n1 | grep -q -w "200\|404"
} }
url_check_available() url_check_available()
{ {
local URL="$1" local URL="$1"
url_get_response "$URL" | grep "HTTP/[0-9]\.[0-9] [0-9]" | tail -n1 | grep -q -w "200" url_get_response "$URL" | grep "HTTP/[12]" | tail -n1 | grep -q -w "200"
} }
url_get_header() url_get_header()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment