mirror of
https://github.com/golang/go
synced 2024-11-26 12:48:11 -07:00
mime: keep builtinTypesLower sorted alphabetically
Updates #44602 Change-Id: I2c32e388143e56928850821587f57d9729434220 Reviewed-on: https://go-review.googlesource.com/c/go/+/310034 Trust: Tobias Klauser <tobias.klauser@gmail.com> Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> Reviewed-by: Emmanuel Odeke <emmanuel@orijtech.com> TryBot-Result: Go Bot <gobot@golang.org>
This commit is contained in:
parent
61a08fc6ce
commit
b1c4cc5589
@ -58,6 +58,7 @@ func setMimeTypes(lowerExt, mixExt map[string]string) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
var builtinTypesLower = map[string]string{
|
var builtinTypesLower = map[string]string{
|
||||||
|
".avif": "image/avif",
|
||||||
".css": "text/css; charset=utf-8",
|
".css": "text/css; charset=utf-8",
|
||||||
".gif": "image/gif",
|
".gif": "image/gif",
|
||||||
".htm": "text/html; charset=utf-8",
|
".htm": "text/html; charset=utf-8",
|
||||||
@ -72,7 +73,6 @@ var builtinTypesLower = map[string]string{
|
|||||||
".svg": "image/svg+xml",
|
".svg": "image/svg+xml",
|
||||||
".wasm": "application/wasm",
|
".wasm": "application/wasm",
|
||||||
".webp": "image/webp",
|
".webp": "image/webp",
|
||||||
".avif": "image/avif",
|
|
||||||
".xml": "text/xml; charset=utf-8",
|
".xml": "text/xml; charset=utf-8",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user