diff --git a/src/java/davmail/caldav/CaldavConnection.java b/src/java/davmail/caldav/CaldavConnection.java index 820cc56e..69f1c905 100644 --- a/src/java/davmail/caldav/CaldavConnection.java +++ b/src/java/davmail/caldav/CaldavConnection.java @@ -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", "/principals/users/" + principal + ""); } + if (request.hasProperty("getcontenttype")) { + response.appendProperty("D:getcontenttype", "text/calendar; component=vevent"); + } if (request.hasProperty("getetag")) { response.appendProperty("D:getetag", session.getCalendarEtag()); }