berlinsurfer: Komisches Content-Type Problem

Beitrag lesen

Hallo,
ich gebe mittels eines PHP-Skripts ein ZIP aus- Problem ist, dass der Content-Type nicht stimmt, obwohl ich ihn per PHP richtig(?) gesetzt habe.
Hier der Code:

defined('_JEXEC') or die('Restricted access');  
$f = $this->downloadArticle();  
header("Content-Type: application/pdf");  
header("Content-Disposition: attachment; filename=" . basename($f));  
header("Pragma: no-cache");  
header("Expires: 0");  
header('Content-Length: '. filesize($f));  
readfile("$f");

Allerdings ergibt get_headers (von einem anderen Server logischerweise) folgendes aus:
[0] => HTTP/1.1 200 OK
[1] => Date: Fri, 24 Feb 2012 07:12:44 GMT
[2] => Server: Apache
[3] => X-Powered-By: PHP/5.2.12-0.dotdeb.1
[4] => Set-Cookie: 0c213845e9f18935ef3643dd94ba5e80=724b01f6cd509e437d3b7d2ddb5a9949; path=/
[5] => Set-Cookie: ce56e8a0729d1d736783f2a0f1286da9=de-DE; expires=Sat, 23-Feb-2013 07:12:44 GMT; path=/
[6] => Connection: close
[7] => Content-Type: text/html

Warum erscheint hier der falsche Content-Type (text/html) ?
Danke schon mal,
berlinsurfer

--
Science flies you to the moon.
Religion flies you into buildings.
selfcode: ie:{ fl:| br:^ va:? ls:< fo:{ rl:( n4:{ ss:} de:[ js:} ch:{ sh:) mo:? zu:)