Skip to content

Commit

Permalink
mime: extend builtinTypesLower
Browse files Browse the repository at this point in the history
Comment with the source of the builtin types

Updates golang#69530
  • Loading branch information
AidanWelch committed Sep 20, 2024
1 parent 4526569 commit 3cc1e3c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/mime/type.go
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 3cc1e3c

Please sign in to comment.