mirror of
https://github.com/golang/go
synced 2024-11-13 17:00:22 -07:00
mime: add .webp for builtin
This change modifies Go to include image/webp as a built-in mime type for the .webp file extension.
Change-Id: Id46d34fac8cc859ddd69aa8669294815654214f8
GitHub-Last-Rev: f191e1c325
GitHub-Pull-Request: golang/go#32157
Reviewed-on: https://go-review.googlesource.com/c/go/+/178317
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
This commit is contained in:
parent
4f248e988a
commit
9b2bd2f715
@ -69,6 +69,7 @@ var builtinTypesLower = map[string]string{
|
|||||||
".png": "image/png",
|
".png": "image/png",
|
||||||
".svg": "image/svg+xml",
|
".svg": "image/svg+xml",
|
||||||
".wasm": "application/wasm",
|
".wasm": "application/wasm",
|
||||||
|
".webp": "image/webp",
|
||||||
".xml": "text/xml; charset=utf-8",
|
".xml": "text/xml; charset=utf-8",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user