details: http://freenginx.org/hg/nginx/rev/707736510a90 branches: changeset: 9327:707736510a90 user: Maxim Dounin <mdou...@mdounin.ru> date: Sat Aug 31 05:40:00 2024 +0300 description: 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 diffstat: conf/mime.types | 1 + src/http/modules/ngx_http_charset_filter_module.c | 1 + 2 files changed, 2 insertions(+), 0 deletions(-) diffs (22 lines): diff --git a/conf/mime.types b/conf/mime.types --- a/conf/mime.types +++ b/conf/mime.types @@ -9,6 +9,7 @@ types { application/atom+xml atom; application/rss+xml rss; + text/markdown md markdown; text/mathml mml; text/plain txt; text/vnd.sun.j2me.app-descriptor jad; diff --git a/src/http/modules/ngx_http_charset_filter_module.c b/src/http/modules/ngx_http_charset_filter_module.c --- 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"),