]> git.ipfire.org Git - thirdparty/apache/httpd.git/commit
Added a note in the mod_headers docs about Content-Type and setifempty
authorLuca Toscano <elukey@apache.org>
Tue, 15 Nov 2016 22:57:18 +0000 (22:57 +0000)
committerLuca Toscano <elukey@apache.org>
Tue, 15 Nov 2016 22:57:18 +0000 (22:57 +0000)
commitfb6ed036831645ce8a083e87f691c044c8c782a1
tree022386db8a249d6b9ce4fc05d3f7ad9e05642a7f
parent1c95ee86af45053f984b9f3dd237124d356b0537
Added a note in the mod_headers docs about Content-Type and setifempty

This note has been added as a follow up of a stack overflow post
(thanks to Michael Allan for the research):

http://stackoverflow.com/questions/29398123/apache-2-4-set-mime-type-of-file-without-extension

After a chat in #httpd-dev it seems that the issue boils down to how %{CONTENT_TYPE}
is evaluated in util_expr_eval.c (r->content_type) vs how setifempty is (only a check
of the response headers). This particular behavior might be a bug or feature,
but it is worth to alert our users.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1769899 13f79535-47bb-0310-9956-ffa450edef68
docs/manual/mod/mod_headers.xml