changing path
This commit is contained in:
@@ -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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user