Mercurial > hg > nginx
changeset 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 | 75794cb1f5ea |
children | 48f30a3add51 |
files | conf/mime.types src/http/modules/ngx_http_charset_filter_module.c |
diffstat | 2 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/conf/mime.types Sat Aug 31 03:55:10 2024 +0300 +++ b/conf/mime.types Sat Aug 31 05:40:00 2024 +0300 @@ -9,6 +9,7 @@ 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;
--- a/src/http/modules/ngx_http_charset_filter_module.c Sat Aug 31 03:55:10 2024 +0300 +++ b/src/http/modules/ngx_http_charset_filter_module.c Sat Aug 31 05:40:00 2024 +0300 @@ -127,6 +127,7 @@ 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"),