From 9b2bd2f7151381cc54638726808f55c6088fa30a Mon Sep 17 00:00:00 2001 From: Eduard Urbach Date: Tue, 21 May 2019 06:06:11 +0000 Subject: [PATCH] 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 Run-TryBot: Brad Fitzpatrick --- src/mime/type.go | 1 + 1 file changed, 1 insertion(+) 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", }