]> granicus.if.org Git - apache/commitdiff
documentation rebuild
authorLuca Toscano <elukey@apache.org>
Thu, 17 Nov 2016 10:52:21 +0000 (10:52 +0000)
committerLuca Toscano <elukey@apache.org>
Thu, 17 Nov 2016 10:52:21 +0000 (10:52 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1770154 13f79535-47bb-0310-9956-ffa450edef68

docs/manual/mod/mod_headers.html.en

index 7f6e108744871d8b34164c81fcd0684e92ba3df2..d25f1a90ae1d676283b97350c1dee4704f6b392d 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.