From 7d1fabccca7b349de2c26eb6a8800c6b485d49a8 Mon Sep 17 00:00:00 2001 From: Luca Toscano Date: Thu, 17 Nov 2016 10:52:21 +0000 Subject: [PATCH] documentation rebuild 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 | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/docs/manual/mod/mod_headers.html.en b/docs/manual/mod/mod_headers.html.en index 7f6e108744..d25f1a90ae 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
setifempty
The request header is set, but only if there is no previous header - with this name.
- Available in 2.4.7 and later.
+ with this name. +
+ 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 setifempty is evaluated. + It is safer to use set for this use case like in the + following example: +
Header set Content-Type "text/plain" "expr=-z %{CONTENT_TYPE}"
+ +
unset
The response header of this name is removed, if it exists. -- 2.40.0