Send correct Content-Type when PUTing events (Bug #9206).
authorJan Schneider <jan@horde.org>
Tue, 21 Sep 2010 15:32:27 +0000 (17:32 +0200)
committerJan Schneider <jan@horde.org>
Tue, 21 Sep 2010 15:32:27 +0000 (17:32 +0200)
kronolith/lib/Driver/Ical.php

index 6f72ce6..8e38ebe 100644 (file)
@@ -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);