diff src/http/modules/ngx_http_charset_filter_module.c @ 9327:707736510a90

MIME: added text/markdown type. Added text/markdown type for the ".md" and ".markdown" extensions (https://www.iana.org/assignments/media-types/text/markdown). Additionally, text/markdown is added to the default charset_types list of the charset module, making it easier to provide the "charset" parameter, which is defined as REQUIRED for text/markdown. Prodded by Andrea Pappacoda, http://freenginx.org/pipermail/nginx-devel/2024-August/000486.html
author Maxim Dounin <mdounin@mdounin.ru>
date Sat, 31 Aug 2024 05:40:00 +0300
parents f53146df9a47
children 48f30a3add51
line wrap: on
line diff
--- a/src/http/modules/ngx_http_charset_filter_module.c
+++ b/src/http/modules/ngx_http_charset_filter_module.c
@@ -127,6 +127,7 @@ static ngx_str_t  ngx_http_charset_defau
     ngx_string("text/html"),
     ngx_string("text/xml"),
     ngx_string("text/plain"),
+    ngx_string("text/markdown"),
     ngx_string("text/vnd.wap.wml"),
     ngx_string("application/javascript"),
     ngx_string("application/rss+xml"),