From 4884ab03407c7cc84365b2767447ba31a7bdf71d Mon Sep 17 00:00:00 2001 From: Artem Boldariev Date: Mon, 17 Jan 2022 16:32:10 +0200 Subject: [PATCH] doth test: use extended reg. expression to check for HTTP/2 support 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/tests/system/doth/tests.sh b/bin/tests/system/doth/tests.sh index e9bcb89405..5e5c9b0f0e 100644 --- a/bin/tests/system/doth/tests.sh +++ b/bin/tests/system/doth/tests.sh @@ -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