diff --git a/main.js b/main.js index 7e3f8c3..1a1bae2 100755 --- a/main.js +++ b/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