From f6bf0cf2fa886af1d7aa481bbe8f2efd601aabda Mon Sep 17 00:00:00 2001 From: cloudix_mcp_server Date: Fri, 12 Jun 2026 09:06:47 -0400 Subject: [PATCH] fix(test): follow redirect with curl -L in test.sh SABnzbd redirects to /wizard/ on first run (303). Without -L, the test gets the redirect body (no "SABnzbd" text). With -L, curl follows to the wizard page which contains the expected text. --- tests/test.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test.sh b/tests/test.sh index 094729c..de046a4 100644 --- a/tests/test.sh +++ b/tests/test.sh @@ -70,7 +70,7 @@ done echo "" echo "Test: GET / (SABnzbd web UI)" -RESPONSE=$(curl -s -D - "$BASE_URL/") +RESPONSE=$(curl -sL -D - "$BASE_URL/") STATUS=$(echo "$RESPONSE" | head -1 | grep -oP '\d{3}') BODY=$(echo "$RESPONSE" | sed -n '/^\r$/,$p' | tail -n +2) @@ -79,4 +79,4 @@ assert_match "Body contains SABnzbd" "[Ss][Aa][Bb].*[Nn]zbd" "$BODY" echo "" echo "Results: $PASSED/$TOTAL passed, $FAILED failed" -[ "$FAILED" -eq 0 ] +[ "$FAILED" -eq 0 ] \ No newline at end of file