fixed wrong content-type reported by Erwin (erwin.leubaz-AT-advancedsilicon.com) on the developers list

This commit is contained in:
Ralf Becker 2007-10-13 07:25:52 +00:00
parent 5c4ae9329c
commit 861768e0e3

View File

@ -555,10 +555,12 @@
if($logdir) log_ical($logmsg,"export",$vcalstr);
// handle response ...
$content_type = icalsrv_resourcehandler::deviceType2contentType($icalvc->deviceType);
// using fixed text/calendar as content-type, as deviceType2contentType always returns '', which cause php to use text/html
//$content_type = icalsrv_resourcehandler::deviceType2contentType($icalvc->deviceType);
$content_type = 'text/calendar';
if($content_type)
{
header($content_type);
header('Content-Type: '.$content_type);
}
echo $vcalstr;
$GLOBALS['egw']->common->egw_exit();