]> granicus.if.org Git - apache/commitdiff
documentation rebuild
authorLuca Toscano <elukey@apache.org>
Tue, 15 Nov 2016 22:57:36 +0000 (22:57 +0000)
committerLuca Toscano <elukey@apache.org>
Tue, 15 Nov 2016 22:57:36 +0000 (22:57 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1769900 13f79535-47bb-0310-9956-ffa450edef68

docs/manual/mod/mod_headers.html.en

index 364bc7409458ceb3db7f017434224eab7a0f28d3..d157b01b5089d4a535e159230dcd6ac1cfc6fa31 100644 (file)
@@ -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.