X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=test%2Fcommon%2Fdo_curl_function.sh;h=6476711fcf61ce5183156932fc367cbfbbecacef;hb=10367fe2265369ef635d12a9aa19b80fe656fcbd;hp=a3f5507ec4a5ea333916414b5fb7646f3a0c90b3;hpb=36ff34cc560eab1814621d24f90e637dbd07373f;p=nonrtric.git diff --git a/test/common/do_curl_function.sh b/test/common/do_curl_function.sh index a3f5507e..6476711f 100755 --- a/test/common/do_curl_function.sh +++ b/test/common/do_curl_function.sh @@ -93,7 +93,9 @@ do_curl() { exit 1 else echo " OK, code: "$status" (Expected)" - if [[ "$content_type" == *"$resp_content"* ]]; then + if [[ "$resp_content" == '*' ]]; then + : + elif [[ "$content_type" == *"$resp_content"* ]]; then echo " Content type: "$content_type" (Expected)" else echo " Expected content type: "$resp_content