1
0
mirror of https://github.com/golang/go synced 2024-11-21 21:04:41 -07:00

mime: extend builtinTypesLower

Comment with the source of the builtin types

Updates golang/go#69530
This commit is contained in:
Aidan Welch 2024-09-20 03:33:16 +02:00
parent 4526569ba7
commit 3cc1e3ceb2

View File

@ -50,6 +50,8 @@ func setMimeTypes(lowerExt, mixExt map[string]string) {
} }
} }
// These are just commomly used types mostly taken from
// https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types
var builtinTypesLower = map[string]string{ var builtinTypesLower = map[string]string{
".7z": "application/x-7z-compressed", ".7z": "application/x-7z-compressed",
".aac": "audio/aac", ".aac": "audio/aac",