From: Jan Schneider Date: Tue, 21 Sep 2010 15:32:27 +0000 (+0200) Subject: Send correct Content-Type when PUTing events (Bug #9206). X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=169027f549fb970ab759e50c612c02db271b1921;p=horde.git Send correct Content-Type when PUTing events (Bug #9206). --- diff --git a/kronolith/lib/Driver/Ical.php b/kronolith/lib/Driver/Ical.php index 6f72ce6c0..8e38ebee6 100644 --- a/kronolith/lib/Driver/Ical.php +++ b/kronolith/lib/Driver/Ical.php @@ -439,7 +439,7 @@ class Kronolith_Driver_Ical extends Kronolith_Driver $url = trim($this->_getUrl(), '/') . '/' . $event->id; try { - $response = $this->_getClient()->put($url, $ical->exportvCalendar()); + $response = $this->_getClient()->put($url, $ical->exportvCalendar(), array('Content-Type' => 'text/calendar')); } catch (Horde_Http_Exception $e) { Horde::logMessage($e, 'INFO'); throw new Kronolith_Exception($e);