Code Review
/
nonrtric.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Fetch of authorization token
[nonrtric.git]
/
test
/
common
/
do_curl_function.sh
diff --git
a/test/common/do_curl_function.sh
b/test/common/do_curl_function.sh
index
a3f5507
..
6476711
100755
(executable)
--- 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)"
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
echo " Content type: "$content_type" (Expected)"
else
echo " Expected content type: "$resp_content