Apparently it is OK to use REPORT on normal collections.

This commit is contained in:
Andrew McMillan 2006-12-10 22:39:27 +13:00
parent e776477715
commit 1be3e5d320

View File

@ -54,21 +54,19 @@ if ( !$exists ) {
if ( isset($c->override_allowed_methods) )
$allowed = $c->override_allowed_methods;
else {
$allowed = "OPTIONS, GET, HEAD, PUT, DELETE, PROPFIND, MKCOL, MKCALENDAR, LOCK, UNLOCK";
if ( $is_calendar ) $allowed .= ", REPORT";
$allowed = "OPTIONS, GET, HEAD, PUT, DELETE, PROPFIND, MKCOL, MKCALENDAR, LOCK, UNLOCK, REPORT";
}
header( "Allow: $allowed");
/**
* From reading the "Scheduling Extensions to CalDAV" draft I don't think that we will
* be doing this any time soon. The current spec is at:
* be doing 'calendar-schedule' any time soon. The current spec is at:
* http://www.ietf.org/internet-drafts/draft-desruisseaux-caldav-sched-02.txt
*
* access-control is rfc3744, so we will say we do it, but I doubt if we do it
* in all it's glory really.
* in all (or even much of) it's glory really.
*/
$dav = "1, 2, access-control";
if ( $is_calendar ) $dav .= ", calendar-access";
$dav = "1, 2, access-control, calendar-access";
header( "Allow: $allowed");
header( "DAV: $dav");
// header( "DAV: 1, 2, access-control, calendar-access, calendar-schedule");