fixed jpg mimetype fallthrough
This commit is contained in:
parent
dc8cf44870
commit
03a454bf51
@ -9,7 +9,7 @@ import (
|
||||
)
|
||||
|
||||
const (
|
||||
DefaultCacheTimeInMinutes = 1
|
||||
DefaultCacheTimeInMinutes = 15
|
||||
)
|
||||
|
||||
type (
|
||||
@ -221,6 +221,7 @@ func GuessMimetype(filePath string) string {
|
||||
case "ico":
|
||||
return "image/vnd.microsoft.icon"
|
||||
case "jpg":
|
||||
fallthrough
|
||||
case "jpeg":
|
||||
return "image/jpeg"
|
||||
case "js":
|
||||
|
||||
Loading…
Reference in New Issue
Block a user