]> Cypherpunks repositories - gostls13.git/commitdiff
mime: keep builtinTypesLower sorted alphabetically
authorTobias Klauser <tklauser@distanz.ch>
Thu, 15 Apr 2021 08:48:12 +0000 (10:48 +0200)
committerTobias Klauser <tobias.klauser@gmail.com>
Thu, 15 Apr 2021 10:21:10 +0000 (10:21 +0000)
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>

src/mime/type.go

index a13aa04b5b0c0656eff677fa82f6af7a461bba06..9bbbf216a1d1d96fc35ba6c2e1e4d569b361fb8b 100644 (file)
@@ -58,6 +58,7 @@ func setMimeTypes(lowerExt, mixExt map[string]string) {
 }
 
 var builtinTypesLower = map[string]string{
+       ".avif": "image/avif",
        ".css":  "text/css; charset=utf-8",
        ".gif":  "image/gif",
        ".htm":  "text/html; charset=utf-8",
@@ -72,7 +73,6 @@ var builtinTypesLower = map[string]string{
        ".svg":  "image/svg+xml",
        ".wasm": "application/wasm",
        ".webp": "image/webp",
-       ".avif": "image/avif",
        ".xml":  "text/xml; charset=utf-8",
 }