Add MIME Types (#27)
* Add MIME type for zip files. * Create separate case for text bucket, default to application and the extension.
This commit is contained in:
parent
7d5cff9c67
commit
b9de69bcf5
8
main.js
8
main.js
@ -214,9 +214,15 @@ async function main() {
|
|||||||
case "html":
|
case "html":
|
||||||
mime = "text/html";
|
mime = "text/html";
|
||||||
break;
|
break;
|
||||||
default:
|
case "zip":
|
||||||
|
mime = "application/zip";
|
||||||
|
break;
|
||||||
|
case "txt" || "csv" || "md":
|
||||||
mime = "text/*";
|
mime = "text/*";
|
||||||
break;
|
break;
|
||||||
|
default:
|
||||||
|
mime = "application/" + extension;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Return the file
|
// Return the file
|
||||||
|
Loading…
x
Reference in New Issue
Block a user