Mailing List Archive

[Bug 64646] New: Header "set" does not replace content-disposition header passed from content handler
https://bz.apache.org/bugzilla/show_bug.cgi?id=64646

Bug ID: 64646
Summary: Header "set" does not replace content-disposition
header passed from content handler
Product: Apache httpd-2
Version: 2.4.43
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P2
Component: mod_headers
Assignee: bugs@httpd.apache.org
Reporter: raffaele.sandrini@origammi.co
Target Milestone: ---

In a setup where an incoming request is handled by PHP-FPM through "SetHandler
"proxy:fcgi:...", the handling PHP script is setting the response header:

content-disposition: attachment; filename="foo.pdf"

The directive:

Header set "content-disposition" "baz"

set in a .htaccess file

will result in headers:

HTTP/1.1 200 OK
Server: Apache
content-disposition: attachment; filename="foo.pdf"
content-disposition: baz
[...]

Which is unexpected according to what is specified in the documentation of
mod_header.

"set
The response header is set, replacing any previous header with this name. The
value may be a format string."

--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org