Commit 80b4959

Eric Bower  ·  2025-12-06 22:57:56 -0500 EST
parent 7f62d77
chore(mime): more types
1 files changed,  +9, -1
+9, -1
......@@ -79,8 +79,16 @@ func GetMimeType(fpath string) string {
7979 return "application/zip"
8080 case ".rar":
8181 return "application/vnd.rar"
82- case ".tar.gz":
82+ case ".gz":
8383 return "application/gzip"
84+ case ".bz2":
85+ return "application/x-bzip2"
86+ case ".xz":
87+ return "application/x-xz"
88+ case ".7z":
89+ return "application/x-7z-compressed"
90+ case ".tar":
91+ return "application/x-tar"
8492 case ".txt":
8593 return "text/plain"
8694 }