changeset 3096:ddf686b02ceb

Documented charset_types changes.
author Maxim Dounin <mdounin@mdounin.ru>
date Mon, 02 Sep 2024 09:35:06 +0300
parents aea3e104f11d
children 807f064844a5
files xml/en/docs/http/ngx_http_charset_module.xml xml/ru/docs/http/ngx_http_charset_module.xml
diffstat 2 files changed, 15 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/xml/en/docs/http/ngx_http_charset_module.xml
+++ b/xml/en/docs/http/ngx_http_charset_module.xml
@@ -10,7 +10,7 @@
 <module name="Module ngx_http_charset_module"
         link="/en/docs/http/ngx_http_charset_module.html"
         lang="en"
-        rev="5">
+        rev="6">
 
 <section id="summary">
 
@@ -165,8 +165,8 @@ are provided in the distribution files <
 
 <directive name="charset_types">
 <syntax><value>mime-type</value> ...</syntax>
-<default>text/html text/xml text/plain text/vnd.wap.wml
-application/javascript application/rss+xml</default>
+<default>text/html text/xml text/javascript text/plain text/markdown
+text/vnd.wap.wml application/javascript application/rss+xml</default>
 <context>http</context>
 <context>server</context>
 <context>location</context>
@@ -180,9 +180,13 @@ The special value “<literal>*</literal>” matches any MIME type (0.8.29).
 
 <para>
 <note>
-Until version 1.5.4, “<literal>application/x-javascript</literal>” was used
+Prior to version 1.5.4, “<literal>application/x-javascript</literal>” was used
 as the default MIME type instead of “<literal>application/javascript</literal>”.
 </note>
+<note>
+Prior to version 1.27.4, the default value did not include
+“<literal>text/javascript</literal>” and “<literal>text/markdown</literal>”.
+</note>
 </para>
 
 </directive>
--- a/xml/ru/docs/http/ngx_http_charset_module.xml
+++ b/xml/ru/docs/http/ngx_http_charset_module.xml
@@ -10,7 +10,7 @@
 <module name="Модуль ngx_http_charset_module"
         link="/ru/docs/http/ngx_http_charset_module.html"
         lang="ru"
-        rev="5">
+        rev="6">
 
 <section id="summary">
 
@@ -164,8 +164,8 @@ charset_map koi8-r utf-8 {
 
 <directive name="charset_types">
 <syntax><value>mime-тип</value> ...</syntax>
-<default>text/html text/xml text/plain text/vnd.wap.wml
-application/javascript application/rss+xml</default>
+<default>text/html text/xml text/javascript text/plain text/markdown
+text/vnd.wap.wml application/javascript application/rss+xml</default>
 <context>http</context>
 <context>server</context>
 <context>location</context>
@@ -184,6 +184,10 @@ application/javascript application/rss+x
 “<literal>application/javascript</literal>” использовался
 “<literal>application/x-javascript</literal>”.
 </note>
+<note>
+До версии 1.27.4 значение по умолчанию не включало
+“<literal>text/javascript</literal>” и “<literal>text/markdown</literal>”.
+</note>
 </para>
 
 </directive>