diff options
Diffstat (limited to 'docs/manual/mod')
-rw-r--r-- | docs/manual/mod/mod_headers.xml | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/docs/manual/mod/mod_headers.xml b/docs/manual/mod/mod_headers.xml index 99b38518d7..a0c2eca929 100644 --- a/docs/manual/mod/mod_headers.xml +++ b/docs/manual/mod/mod_headers.xml @@ -410,8 +410,17 @@ available in 2.4.10 and later</compatibility> <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. + <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: + <highlight language="config"> + Header set Content-Type "text/plain" "expr=-z %{CONTENT_TYPE}" + </highlight> + </note></dd> <dt><code>unset</code></dt> <dd>The response header of this name is removed, if it exists. |