mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-05-31 03:34:18 +00:00
Apparently it is OK to use REPORT on normal collections.
This commit is contained in:
parent
e776477715
commit
1be3e5d320
@ -54,21 +54,19 @@ if ( !$exists ) {
|
|||||||
if ( isset($c->override_allowed_methods) )
|
if ( isset($c->override_allowed_methods) )
|
||||||
$allowed = $c->override_allowed_methods;
|
$allowed = $c->override_allowed_methods;
|
||||||
else {
|
else {
|
||||||
$allowed = "OPTIONS, GET, HEAD, PUT, DELETE, PROPFIND, MKCOL, MKCALENDAR, LOCK, UNLOCK";
|
$allowed = "OPTIONS, GET, HEAD, PUT, DELETE, PROPFIND, MKCOL, MKCALENDAR, LOCK, UNLOCK, REPORT";
|
||||||
if ( $is_calendar ) $allowed .= ", REPORT";
|
|
||||||
}
|
}
|
||||||
header( "Allow: $allowed");
|
header( "Allow: $allowed");
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* From reading the "Scheduling Extensions to CalDAV" draft I don't think that we will
|
* 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
|
* 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
|
* 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";
|
$dav = "1, 2, access-control, calendar-access";
|
||||||
if ( $is_calendar ) $dav .= ", calendar-access";
|
|
||||||
header( "Allow: $allowed");
|
header( "Allow: $allowed");
|
||||||
header( "DAV: $dav");
|
header( "DAV: $dav");
|
||||||
// header( "DAV: 1, 2, access-control, calendar-access, calendar-schedule");
|
// header( "DAV: 1, 2, access-control, calendar-access, calendar-schedule");
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user