changeset 1291:d7740f42b00a

Headers: documented the "always" parameter of the "add_header" directive.
author Yaroslav Zhuravlev <yar@nginx.com>
date Tue, 16 Sep 2014 12:27:55 +0400
parents f5cc9f2aef9a
children bb18e3bd3fb9
files xml/en/docs/http/ngx_http_headers_module.xml xml/ru/docs/http/ngx_http_headers_module.xml
diffstat 2 files changed, 18 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/xml/en/docs/http/ngx_http_headers_module.xml	Fri Sep 12 16:38:33 2014 +0400
+++ b/xml/en/docs/http/ngx_http_headers_module.xml	Tue Sep 16 12:27:55 2014 +0400
@@ -10,7 +10,7 @@
 <module name="Module ngx_http_headers_module"
         link="/en/docs/http/ngx_http_headers_module.html"
         lang="en"
-        rev="5">
+        rev="6">
 
 <section id="summary">
 
@@ -43,7 +43,9 @@
 <section id="directives" name="Directives">
 
 <directive name="add_header">
-<syntax><value>name</value> <value>value</value></syntax>
+<syntax>
+<value>name</value> <value>value</value>
+[<literal>always</literal>]</syntax>
 <default/>
 <context>http</context>
 <context>server</context>
@@ -64,6 +66,11 @@
 directives defined on the current level.
 </para>
 
+<para>
+If the <literal>always</literal> parameter is specified (1.7.5),
+the header field will be added regardless of the response code.
+</para>
+
 </directive>
 
 
--- a/xml/ru/docs/http/ngx_http_headers_module.xml	Fri Sep 12 16:38:33 2014 +0400
+++ b/xml/ru/docs/http/ngx_http_headers_module.xml	Tue Sep 16 12:27:55 2014 +0400
@@ -10,7 +10,7 @@
 <module name="Модуль ngx_http_headers_module"
         link="/ru/docs/http/ngx_http_headers_module.html"
         lang="ru"
-        rev="5">
+        rev="6">
 
 <section id="summary">
 
@@ -43,7 +43,9 @@
 <section id="directives" name="Директивы">
 
 <directive name="add_header">
-<syntax><value>имя</value> <value>значение</value></syntax>
+<syntax>
+<value>имя</value> <value>значение</value>
+[<literal>always</literal>]</syntax>
 <default/>
 <context>http</context>
 <context>server</context>
@@ -62,6 +64,11 @@
 уровне не описаны свои директивы <literal>add_header</literal>.
 </para>
 
+<para>
+Если указан параметр <literal>always</literal> (1.7.5),
+то поле заголовка будет добавлено независимо от кода ответа.
+</para>
+
 </directive>