Tests: handle offsite URLs that use HTTP/2 with recent versions of curl

This commit is contained in:
David A. Harding 2019-05-30 11:43:08 -04:00
parent 62ec95923c
commit 3edea72cfa
No known key found for this signature in database
GPG Key ID: D9DB41A96C2269D3
1 changed files with 1 additions and 1 deletions

View File

@ -25,5 +25,5 @@ do
curl -sI "https://bitcoincore.org${url}"
else
curl -sI "$url"
fi | grep -q '200 OK' || echo "Error: Could not retrieve $url"
fi | egrep -q '(200 OK|HTTP/2 200)' || echo "Error: Could not retrieve $url"
done | if grep . ; then sed 1iERROR ; false ; else true ; fi