Made project use a callback provider to avoid letting almost the whole world on blank

This commit is contained in:
2026-07-24 11:16:19 -03:00
parent 281ad7142c
commit 748c1e8365
7 changed files with 213 additions and 16 deletions
+2 -2
View File
@@ -35,6 +35,6 @@ done
headers="$(curl -sS -D - -o /dev/null "$base_url/tiles/$x/$y/$z")"
printf '%s\n' "$headers" | grep -qi '^HTTP/.* 200'
printf '%s\n' "$headers" | grep -qi '^Content-Type: image/png'
test "$(curl -sS -o /dev/null -w '%{http_code}' "$base_url/tiles/0/0/0")" = "404"
printf '%s\n' "$headers" | grep -qi '^Access-Control-Allow-Origin: \*'
printf 'Smoke test passou: /tiles/%s/%s/%s retornou PNG e tile descoberta retornou 404.\n' "$x" "$y" "$z"
printf 'Smoke test passou: /tiles/%s/%s/%s retornou PNG/CORS.\n' "$x" "$y" "$z"