fixed jpg mimetype fallthrough

This commit is contained in:
dtookey 2022-08-02 10:58:10 -04:00
parent dc8cf44870
commit 03a454bf51

View File

@ -9,7 +9,7 @@ import (
) )
const ( const (
DefaultCacheTimeInMinutes = 1 DefaultCacheTimeInMinutes = 15
) )
type ( type (
@ -221,6 +221,7 @@ func GuessMimetype(filePath string) string {
case "ico": case "ico":
return "image/vnd.microsoft.icon" return "image/vnd.microsoft.icon"
case "jpg": case "jpg":
fallthrough
case "jpeg": case "jpeg":
return "image/jpeg" return "image/jpeg"
case "js": case "js":