Commit 6a3121d

Eric Bower  ·  2026-04-03 21:27:18 -0400 EDT
parent c0517ee
fix(pgs): normalize ext
1 files changed,  +5, -2
+5, -2
......@@ -1,9 +1,12 @@
11 package mime
22
3-import "path/filepath"
3+import (
4+ "path/filepath"
5+ "strings"
6+)
47
58 func GetMimeType(fpath string) string {
6- ext := filepath.Ext(fpath)
9+ ext := strings.ToLower(filepath.Ext(fpath))
710 switch ext {
811 case ".svg":
912 return "image/svg+xml"