Fix Testing of bad-referrer-words.conf

This commit is contained in:
Mitchell Krog 2019-06-24 16:17:14 +02:00
parent 02ff7b8826
commit 6d7b8ff0f8
No known key found for this signature in database
GPG key ID: C243C388553EDE5D

View file

@ -58,7 +58,7 @@ sleep 30s
# *******************************************************
run_curltest1 () {
if curl -v -A "thisisabadword" http://localhost:9000 2>&1 | grep -i '(52)'; then
if curl -I http://localhost:9000 -e "thisisabadword" 2>&1 | grep -i '(52)'; then
echo "${bold}${green}PASSED - User bad-referrer-words.conf working"
else
echo "${bold}${red}FAILED - User bad-referrer-words.conf NOT working"
@ -72,7 +72,7 @@ run_curltest1
# **************************************************************
run_curltest2 () {
if curl -v -A "thisisanotherbadword" http://localhost:9000 2>&1 | grep -i '(52)'; then
if curl -I http://localhost:9000 -e "thisisanotherbadword" 2>&1 | grep -i '(52)'; then
echo "${bold}${green}PASSED - User bad-referrer-words.conf working"
else
echo "${bold}${red}FAILED - User bad-referrer-words.conf NOT working"