Subject: | Content-Disposition header does get overwritten |
Date: | Wed, 11 Mar 2015 12:45:32 +0100 |
To: | bug-CGI-Application-Plugin-Stream [...] rt.cpan.org |
From: | Kai Wasserbäch <kaw [...] heise.de> |
Hi,
$self->header_add(
-content_disposition => sprintf('inline; filename="%s"', $sMyFile)
);
doesn't prevent CGI::Application::Plugin::Stream's stream_file() from
adding -attachment. This produces an invalid Content-Disposition header.
The reason for this bug is simple: you don't check for
"-content_disposition" in your grep statement. But that version is the
legal one. Setting "-content-disposition" seems to get filtered out
before you check it and has therefore no effect.
Cheers,
Kai
--
Kai Wasserbäch, Softwareentwicklung
Heise Zeitschriften Verlag GmbH & Co. KG
Karl-Wiechert-Allee 10
30625 Hannover
Tel.: +49 [0] 511 5352-338
Fax: +49 [0] 511 5352-417
E-Mail: kaw@heise.de
GnuPG: 0x07C9D0B9 / 126D 0DC8 7EF2 E088 3A86 2A6C 4142 C9A8 07C9 D0B9
Registergericht: Amtsgericht Hannover HRA 26709
Persönlich haftende Gesellschafterin:
Heise Zeitschriften Verlag Geschäftsführung GmbH
Registergericht: Amtsgericht Hannover, HRB 60405
Geschäftsführer: Ansgar Heise, Dr. Alfons Schräder
Encrypted communication (PGP/MIME) preferred.
Message body not shown because it is not plain text.