fixed jpg mimetype fallthrough
This commit is contained in:
parent
dc8cf44870
commit
03a454bf51
@ -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":
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user