mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-06-05 04:20:17 +00:00
Move the DAV: header to caldav.php, rather than only sending it for
the OPTIONS request.
This commit is contained in:
parent
c0a00fd419
commit
ca10fb50c1
@ -14,6 +14,18 @@ require_once("HTTPAuthSession.php");
|
||||
$session = new HTTPAuthSession();
|
||||
dbg_log_array( "headers", '_SERVER', $_SERVER, true );
|
||||
|
||||
/**
|
||||
* From reading the "Scheduling Extensions to CalDAV" draft I don't think that we will
|
||||
* be doing 'calendar-schedule' any time soon. The current spec is at:
|
||||
* http://www.ietf.org/internet-drafts/draft-desruisseaux-caldav-sched-03.txt
|
||||
*
|
||||
* access-control is rfc3744, so we will say we do it, but I doubt if we do it
|
||||
* in all (or even much of) it's glory really.
|
||||
*/
|
||||
$dav = "1, 2, access-control, calendar-access";
|
||||
header( "DAV: $dav");
|
||||
// header( "DAV: 1, 2, access-control, calendar-access, calendar-schedule");
|
||||
|
||||
require_once("CalDAVRequest.php");
|
||||
$request = new CalDAVRequest();
|
||||
|
||||
|
||||
@ -58,18 +58,6 @@ else {
|
||||
}
|
||||
header( "Allow: $allowed");
|
||||
|
||||
/**
|
||||
* From reading the "Scheduling Extensions to CalDAV" draft I don't think that we will
|
||||
* be doing 'calendar-schedule' any time soon. The current spec is at:
|
||||
* http://www.ietf.org/internet-drafts/draft-desruisseaux-caldav-sched-03.txt
|
||||
*
|
||||
* access-control is rfc3744, so we will say we do it, but I doubt if we do it
|
||||
* in all (or even much of) it's glory really.
|
||||
*/
|
||||
$dav = "1, 2, access-control, calendar-access";
|
||||
header( "Allow: $allowed");
|
||||
header( "DAV: $dav");
|
||||
// header( "DAV: 1, 2, access-control, calendar-access, calendar-schedule");
|
||||
|
||||
$request->DoResponse( 200, "" );
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user