Skip to content

Commit

Permalink
Ensure 404s are actually 404s, not just non-200
Browse files Browse the repository at this point in the history
  • Loading branch information
joecorall committed Nov 9, 2023
1 parent 8b108bb commit 3b71a2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ for URL in "${URLS[@]}"; do
-s \
"http://localhost:8888/proxyUrl?url=$URL")
echo -e "\t${STATUS_CODE}"
if [ "${STATUS_CODE}" -eq 200 ]; then
if [ ! "${STATUS_CODE}" -eq 404 ]; then
EXIT_CODE=1
fi
done
Expand Down

0 comments on commit 3b71a2c

Please sign in to comment.