From 169027f549fb970ab759e50c612c02db271b1921 Mon Sep 17 00:00:00 2001 From: Jan Schneider Date: Tue, 21 Sep 2010 17:32:27 +0200 Subject: [PATCH] Send correct Content-Type when PUTing events (Bug #9206). --- kronolith/lib/Driver/Ical.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.11.0