diff options
author | Luca Toscano <elukey@apache.org> | 2016-11-15 23:57:36 +0100 |
---|---|---|
committer | Luca Toscano <elukey@apache.org> | 2016-11-15 23:57:36 +0100 |
commit | ebb48eb16f897e2baa96fbe8a3096b517dc480d3 (patch) | |
tree | 4bc73ae7fe14b3d92fcedf504a4bdb0e960451d2 /docs/manual/mod/mod_headers.html.en | |
parent | Added a note in the mod_headers docs about Content-Type and setifempty (diff) | |
download | apache2-ebb48eb16f897e2baa96fbe8a3096b517dc480d3.tar.xz apache2-ebb48eb16f897e2baa96fbe8a3096b517dc480d3.zip |
documentation rebuild
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1769900 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to '')
-rw-r--r-- | docs/manual/mod/mod_headers.html.en | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/docs/manual/mod/mod_headers.html.en b/docs/manual/mod/mod_headers.html.en index 364bc74094..d157b01b50 100644 --- a/docs/manual/mod/mod_headers.html.en +++ b/docs/manual/mod/mod_headers.html.en @@ -309,8 +309,16 @@ available in 2.4.10 and later</td></tr> <dt><code>setifempty</code></dt> <dd>The request header is set, but only if there is no previous header - with this name.<br /> - Available in 2.4.7 and later.</dd> + with this name. + <div class="note"> + The Content-Type header is a special use case since there might be + the chance that its value have been determined but the header is not part + of the response when <code>setifempty</code> is evaluated. + It is safer to use <code>set</code> for this use case like in the + following example: + <pre class="prettyprint lang-config">Header set Content-Type "text/plain" "expr=-z %{CONTENT_TYPE}"</pre> + + </div></dd> <dt><code>unset</code></dt> <dd>The response header of this name is removed, if it exists. |