mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-26 22:04:32 +02:00
Improve handling of remote image/jpeg resources (#9278)
Add jpe, jif, and jfif to image/jpeg extensions. For remote image/jpeg without extension, always use jpg extension. Closes #9275
This commit is contained in:
@@ -177,7 +177,7 @@ var (
|
||||
|
||||
// Common image types
|
||||
PNGType = newMediaType("image", "png", []string{"png"})
|
||||
JPEGType = newMediaType("image", "jpeg", []string{"jpg", "jpeg"})
|
||||
JPEGType = newMediaType("image", "jpeg", []string{"jpg", "jpeg", "jpe", "jif", "jfif"})
|
||||
GIFType = newMediaType("image", "gif", []string{"gif"})
|
||||
TIFFType = newMediaType("image", "tiff", []string{"tif", "tiff"})
|
||||
BMPType = newMediaType("image", "bmp", []string{"bmp"})
|
||||
|
Reference in New Issue
Block a user