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:
Hyperling 2024-09-20 19:30:48 -07:00 committed by GitHub
parent 7d5cff9c67
commit b9de69bcf5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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