Skip to content

Commit c1fad41

Browse files
committed
fix uppercase extension problem
1 parent 4ab84a8 commit c1fad41

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fileutils.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ func getBase64Data(filepath string) ([]byte, error) {
181181
Returns MIME type for an image extension. The extension should not start with a dot.
182182
*/
183183
func getImageMimeType(ext string) (string, error) {
184-
t, ok := imageMimeType[ext]
184+
t, ok := imageMimeType[strings.ToLower(ext)]
185185
if !ok {
186186
return "", fmt.Errorf("found no MIME type for: .%s", ext)
187187
}

0 commit comments

Comments
 (0)