* separate content-type header fields by ';' ; thanks Guido for pointing this out.
authorWilfried Göesgens <willi@citadel.org>
Fri, 30 May 2008 20:57:12 +0000 (20:57 +0000)
committerWilfried Göesgens <willi@citadel.org>
Fri, 30 May 2008 20:57:12 +0000 (20:57 +0000)
citadel/modules/calendar/serv_calendar.c

index e9a96e5f0e9da9742b624816650112aec890239c..c39296e32b9aaa10176b1e48750dc799975ee3f2 100644 (file)
@@ -332,7 +332,7 @@ void ical_send_a_reply(icalcomponent *request, char *action) {
        reply_message_text = malloc(strlen(serialized_reply) + SIZ);
        if (reply_message_text != NULL) {
                sprintf(reply_message_text,
-                       "Content-type: text/calendar charset=\"utf-8\"\r\n\r\n%s\r\n",
+                       "Content-type: text/calendar; charset=\"utf-8\"\r\n\r\n%s\r\n",
                        serialized_reply
                );
 
@@ -707,7 +707,7 @@ int ical_update_my_calendar_with_reply(icalcomponent *cal) {
        message_text = malloc(strlen(serialized_event) + SIZ);
        if (message_text != NULL) {
                sprintf(message_text,
-                       "Content-type: text/calendar charset=\"utf-8\"\r\n\r\n%s\r\n",
+                       "Content-type: text/calendar; charset=\"utf-8\"\r\n\r\n%s\r\n",
                        serialized_event
                );