repos / pico

pico services mono repo
git clone https://github.com/picosh/pico.git

commit
6a3121d
parent
c0517ee
author
Eric Bower
date
2026-04-03 21:27:18 -0400 EDT
fix(pgs): normalize ext
1 files changed,  +5, -2
M pkg/shared/mime/mime.go
+5, -2
 1@@ -1,9 +1,12 @@
 2 package mime
 3 
 4-import "path/filepath"
 5+import (
 6+	"path/filepath"
 7+	"strings"
 8+)
 9 
10 func GetMimeType(fpath string) string {
11-	ext := filepath.Ext(fpath)
12+	ext := strings.ToLower(filepath.Ext(fpath))
13 	switch ext {
14 	case ".svg":
15 		return "image/svg+xml"