From 861768e0e384616593949e35d9b9d62f429cebf9 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Sat, 13 Oct 2007 07:25:52 +0000 Subject: [PATCH] fixed wrong content-type reported by Erwin (erwin.leubaz-AT-advancedsilicon.com) on the developers list --- icalsrv.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/icalsrv.php b/icalsrv.php index 81ee8b5761..882a6052a9 100644 --- a/icalsrv.php +++ b/icalsrv.php @@ -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();