better default name
This commit is contained in:
parent
e61343f04f
commit
de10005da7
1 changed files with 1 additions and 1 deletions
|
|
@ -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}`);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue