- hprintf("DAV: 1\r\n");
- hprintf("Allow: OPTIONS, PROPFIND, GET, PUT\r\n");
+
+ /*
+ * Offer CalDAV (RFC 4791) if this is a calendar room
+ */
+ if ( (WC->CurRoom.view == VIEW_CALENDAR) || (WC->CurRoom.view == VIEW_CALBRIEF) ) {
+ hprintf("DAV: 1, calendar-access\r\n");
+ syslog(LOG_DEBUG, "\033[36mDAV: 1, calendar-access\033[0m");
+ }
+ else {
+ hprintf("DAV: 1\r\n");
+ syslog(LOG_DEBUG, "\033[36mDAV: 1\033[0m");
+ }
+
+ hprintf("Allow: OPTIONS, PROPFIND, GET, PUT, REPORT\r\n");