Skip to content

Commit

Permalink
feat: add markdown to guessed mime types (#2784)
Browse files Browse the repository at this point in the history
  • Loading branch information
Toilal committed Dec 31, 2022
1 parent 59fd941 commit d59ca10
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions internal/helpers/mime.go
Expand Up @@ -4,13 +4,15 @@ import "strings"

var builtinTypesLower = map[string]string{
// Text
".css": "text/css; charset=utf-8",
".htm": "text/html; charset=utf-8",
".html": "text/html; charset=utf-8",
".js": "text/javascript; charset=utf-8",
".json": "application/json",
".mjs": "text/javascript; charset=utf-8",
".xml": "text/xml; charset=utf-8",
".css": "text/css; charset=utf-8",
".htm": "text/html; charset=utf-8",
".html": "text/html; charset=utf-8",
".js": "text/javascript; charset=utf-8",
".json": "application/json",
".markdown": "text/markdown; charset=utf-8",
".md": "text/markdown; charset=utf-8",
".mjs": "text/javascript; charset=utf-8",
".xml": "text/xml; charset=utf-8",

// Images
".avif": "image/avif",
Expand Down

0 comments on commit d59ca10

Please sign in to comment.