From 3cc1e3ceb25790687b97087d9b78796ea731dc4a Mon Sep 17 00:00:00 2001 From: Aidan Welch Date: Fri, 20 Sep 2024 03:33:16 +0200 Subject: [PATCH] mime: extend builtinTypesLower Comment with the source of the builtin types Updates golang/go#69530 --- src/mime/type.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/mime/type.go b/src/mime/type.go index ff49a8c166a..00f6f6c5411 100644 --- a/src/mime/type.go +++ b/src/mime/type.go @@ -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{ ".7z": "application/x-7z-compressed", ".aac": "audio/aac",