Changes the default content disposition for WebP attachments from *download* to *inline*. Add WebP codec support side-effect to decode.go. To prevent future issues caused by possible changes in emoji.go.
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
4ba736f018
Коммит
322a500092
@@ -16,6 +16,7 @@ import (
|
|||||||
_ "github.com/oov/psd"
|
_ "github.com/oov/psd"
|
||||||
_ "golang.org/x/image/bmp"
|
_ "golang.org/x/image/bmp"
|
||||||
_ "golang.org/x/image/tiff"
|
_ "golang.org/x/image/tiff"
|
||||||
|
_ "golang.org/x/image/webp"
|
||||||
)
|
)
|
||||||
|
|
||||||
// DecoderOptions holds configuration options for an image decoder.
|
// DecoderOptions holds configuration options for an image decoder.
|
||||||
|
|||||||
@@ -27,6 +27,7 @@ var MediaContentTypes = [...]string{
|
|||||||
"image/bmp",
|
"image/bmp",
|
||||||
"image/gif",
|
"image/gif",
|
||||||
"image/tiff",
|
"image/tiff",
|
||||||
|
"image/webp",
|
||||||
"video/avi",
|
"video/avi",
|
||||||
"video/mpeg",
|
"video/mpeg",
|
||||||
"video/mp4",
|
"video/mp4",
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user