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:
8
main.js
8
main.js
@ -214,9 +214,15 @@ async function main() {
|
||||
case "html":
|
||||
mime = "text/html";
|
||||
break;
|
||||
default:
|
||||
case "zip":
|
||||
mime = "application/zip";
|
||||
break;
|
||||
case "txt" || "csv" || "md":
|
||||
mime = "text/*";
|
||||
break;
|
||||
default:
|
||||
mime = "application/" + extension;
|
||||
break;
|
||||
}
|
||||
|
||||
// Return the file
|
||||
|
Reference in New Issue
Block a user