Skip to content

Commit 3c47190

Browse files
baijumclaude
andcommitted
fix: accept any HTTP response in Caddy health check
On fresh servers with no apps, Caddy returns 404 which caused a false positive failure. Check that Caddy returns any valid HTTP status code instead of requiring 2xx. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 191fcf6 commit 3c47190

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

infrastructure/verify-server.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ else
136136
fail "MinIO health endpoint is not responding"
137137
fi
138138

139-
if curl -sf -o /dev/null http://localhost:80; then
139+
if curl -s -o /dev/null -w '%{http_code}' http://localhost:80 | grep -qE '^[0-9]+$'; then
140140
pass "Caddy is responding on port 80"
141141
else
142142
fail "Caddy is not responding on port 80"

0 commit comments

Comments
 (0)