]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
doth test: use extended reg. expression to check for HTTP/2 support
authorArtem Boldariev <artem@boldariev.com>
Mon, 17 Jan 2022 14:32:10 +0000 (16:32 +0200)
committerArtem Boldariev <artem@boldariev.com>
Mon, 17 Jan 2022 14:36:27 +0000 (16:36 +0200)
Using extended regular expressions to check for HTTP/2 support in curl
appears to be a more portable option, which also works on
e.g. OpenBSD.

bin/tests/system/doth/tests.sh

index e9bcb894057d5b8edf1e19fbc5f7f351e0107583..5e5c9b0f0ebdd18771ad0a2065004a6cd9ebe480 100644 (file)
@@ -551,7 +551,7 @@ status=$((status + ret))
 
 # check whether we can use curl for sending test queries.
 if [ -x "${CURL}" ] ; then
-       CURL_HTTP2="$(${CURL} --version | grep '^Features:.* HTTP2\( \|$\)')"
+       CURL_HTTP2="$(${CURL} --version | grep -E '^Features:.* HTTP2( |$)')"
 
        if [ -n "$CURL_HTTP2" ]; then
                testcurl=1