[CalendarServer-changes] [6114] CalendarServer/trunk/txcaldav/calendarstore/postgres.py

source_changes at macosforge.org source_changes at macosforge.org
Wed Aug 18 12:32:31 PDT 2010


Revision: 6114
          http://trac.macosforge.org/projects/calendarserver/changeset/6114
Author:   cdaboo at apple.com
Date:     2010-08-18 12:32:31 -0700 (Wed, 18 Aug 2010)
Log Message:
-----------
Proper content types with charset.

Modified Paths:
--------------
    CalendarServer/trunk/txcaldav/calendarstore/postgres.py

Modified: CalendarServer/trunk/txcaldav/calendarstore/postgres.py
===================================================================
--- CalendarServer/trunk/txcaldav/calendarstore/postgres.py	2010-08-18 18:43:51 UTC (rev 6113)
+++ CalendarServer/trunk/txcaldav/calendarstore/postgres.py	2010-08-18 19:32:31 UTC (rev 6114)
@@ -565,7 +565,7 @@
         """
         The content type of Calendar objects is text/calendar.
         """
-        return MimeType.fromString("text/calendar")
+        return MimeType.fromString("text/calendar; charset=utf-8")
 
 
     def md5(self):
@@ -1539,7 +1539,7 @@
         """
         The content type of Calendar objects is text/calendar.
         """
-        return MimeType.fromString("text/calendar")
+        return MimeType.fromString("text/calendar; charset=utf-8")
 
 
     def md5(self):
@@ -1732,7 +1732,7 @@
         """
         The content type of Calendar objects is text/calendar.
         """
-        return MimeType.fromString("text/calendar")
+        return None
 
 
     def md5(self):
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20100818/abf06a9f/attachment.html>


More information about the calendarserver-changes mailing list