Hi!

You are completely right, I forgot to put it in my commit message. The
"Compatibility" section of
https://httpd.apache.org/docs/trunk/mod/mod_headers.html#header is already
mentioning the >= 2.4.7 note so I thought to remove the duplicate.

If you feel that it would be better to restore it, I'll do it :)

Thanks!

Luca

2016-11-16 7:01 GMT+01:00 Marion & Christophe JAILLET <
[email protected]>:

> Hi,
>
> why removing compatibility note (i.e. 2.4.7) ?
>
> CJ
>
>
>
> Le 15/11/2016 à 23:57, [email protected] a écrit :
>
>> Author: elukey
>> Date: Tue Nov 15 22:57:36 2016
>> New Revision: 1769900
>>
>> URL: http://svn.apache.org/viewvc?rev=1769900&view=rev
>> Log:
>> documentation rebuild
>>
>> Modified:
>>      httpd/httpd/trunk/docs/manual/mod/mod_headers.html.en
>>
>> Modified: httpd/httpd/trunk/docs/manual/mod/mod_headers.html.en
>> URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/docs/manual/m
>> od/mod_headers.html.en?rev=1769900&r1=1769899&r2=1769900&view=diff
>> ============================================================
>> ==================
>> --- httpd/httpd/trunk/docs/manual/mod/mod_headers.html.en (original)
>> +++ httpd/httpd/trunk/docs/manual/mod/mod_headers.html.en Tue Nov 15
>> 22:57:36 2016
>> @@ -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.
>>
>>
>>
>>
>

Reply via email to