1
0
mirror of https://github.com/moparisthebest/davmail synced 2024-08-13 16:53:51 -04:00

Caldav: add getcontenttype response to fix compatibility issue with sunbird 1.0pre

git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@420 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
mguessan 2009-03-04 23:31:20 +00:00
parent f864989cf8
commit d9610efd27

View File

@ -285,6 +285,9 @@ public class CaldavConnection extends AbstractConnection {
if (request.hasProperty("calendar-data")) {
response.appendCalendarData(event.getICS());
}
if (request.hasProperty("getcontenttype")) {
response.appendProperty("D:getcontenttype", "text/calendar; component=vevent");
}
if (request.hasProperty("getetag")) {
response.appendProperty("D:getetag", event.getEtag());
}
@ -309,6 +312,9 @@ public class CaldavConnection extends AbstractConnection {
if (request.hasProperty("owner")) {
response.appendProperty("D:owner", "<D:href>/principals/users/" + principal + "</D:href>");
}
if (request.hasProperty("getcontenttype")) {
response.appendProperty("D:getcontenttype", "text/calendar; component=vevent");
}
if (request.hasProperty("getetag")) {
response.appendProperty("D:getetag", session.getCalendarEtag());
}