aboutsummaryrefslogtreecommitdiff
path: root/src/mime
diff options
context:
space:
mode:
authorEduard Urbach <e.urbach@gmail.com>2019-05-21 06:06:11 +0000
committerBrad Fitzpatrick <bradfitz@golang.org>2019-05-21 14:05:00 +0000
commit9b2bd2f7151381cc54638726808f55c6088fa30a (patch)
tree92a7be28651869d30022ab6152a827d3170964fb /src/mime
parent4f248e988aa67a122d3355f6a22d50c1675697bb (diff)
downloadgo-9b2bd2f7151381cc54638726808f55c6088fa30a.tar.gz
go-9b2bd2f7151381cc54638726808f55c6088fa30a.zip
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: f191e1c325126e2caeb3123c912131ce5236542b 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>
Diffstat (limited to 'src/mime')
-rw-r--r--src/mime/type.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mime/type.go b/src/mime/type.go
index bf10de8d69..ad763133e6 100644
--- a/src/mime/type.go
+++ b/src/mime/type.go
@@ -69,6 +69,7 @@ var builtinTypesLower = map[string]string{
".png": "image/png",
".svg": "image/svg+xml",
".wasm": "application/wasm",
+ ".webp": "image/webp",
".xml": "text/xml; charset=utf-8",
}