From 21d8f5129e3cbb805485a5b0394c6c3fbe025a0a Mon Sep 17 00:00:00 2001 From: Andrew McMillan Date: Thu, 11 Sep 2008 10:24:46 +1200 Subject: [PATCH] Allow DAV: header to be overridden more tidily for development. --- htdocs/caldav.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/htdocs/caldav.php b/htdocs/caldav.php index a8a1a73b..f81eebf2 100644 --- a/htdocs/caldav.php +++ b/htdocs/caldav.php @@ -22,9 +22,13 @@ $session = new HTTPAuthSession(); * 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"; +if ( isset($c->override_dav_header) ) { + $dav = $c->override_dav_header; +} +else { + $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();