changing path

This commit is contained in:
Anaïs Saraiva
2026-08-15 00:46:02 +02:00
parent 4848e7a3e7
commit ad469460a4
4 changed files with 20 additions and 6 deletions
+2 -2
View File
@@ -42,7 +42,7 @@ auth() { # auth <key> -> POST password, stores cookie
}
fetch_auth() { # fetch_auth <key> <outfile>
curl -sS -b "$COOKIES" -o "$2" "$BASE/d/$1"
curl -sS -b "$COOKIES" -o "$2" "$BASE/$1"
}
printf 'hello world\n' > "$TMP/plain.txt"
@@ -62,7 +62,7 @@ URL="$(get "$TMP/up.json" url)"
check "protected file serves a password form" test \
"$(curl -sS -o /dev/null -w '%{content_type}' "$BASE$URL")" = "text/html; charset=utf-8"
check "invalid key returns 404" test \
"$(curl -sS -o /dev/null -w '%{http_code}' "$BASE/d/AAAAAAAAAAAA")" = "404"
"$(curl -sS -o /dev/null -w '%{http_code}' "$BASE/AAAAAAAAAAAA")" = "404"
check "storage directory not served" test \
"$(curl -sS -o /dev/null -w '%{http_code}' "$BASE/storage/")" = "404"