better default name

This commit is contained in:
Soph :3 2025-12-20 14:05:47 +02:00
parent e61343f04f
commit de10005da7

View file

@ -68,7 +68,7 @@ if (!res.ok || !res.body) {
C.info("Content-type: " + res.headers.get("content-type")) C.info("Content-type: " + res.headers.get("content-type"))
const filename = const filename =
res.headers.get("content-disposition")?.match(/filename="?([^"]+)"?/)?.[1] res.headers.get("content-disposition")?.match(/filename="?([^"]+)"?/)?.[1]
?? "download.zip"; ?? `${url.replace(base, '')}-sendgb.zip`;
C.info(`Downloading ${filename}`); C.info(`Downloading ${filename}`);