From e747aacb17683f53d8e5b4135f84d43feb283097 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Alvergnat?= Date: Fri, 30 Dec 2022 17:25:09 +0100 Subject: [PATCH] feat: add markdown to guessed mime types --- internal/helpers/mime.go | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/internal/helpers/mime.go b/internal/helpers/mime.go index 88957772a9e..b1f77d0306c 100644 --- a/internal/helpers/mime.go +++ b/internal/helpers/mime.go @@ -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",