From e49d3dd22505d008de0b15fdec9cfadb33b9a4ae Mon Sep 17 00:00:00 2001 From: Andrew McMillan Date: Thu, 26 Sep 2013 14:24:38 +0200 Subject: [PATCH] We will add a setting to disable the DAV header on non-OPTIONS requests. --- htdocs/caldav.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/htdocs/caldav.php b/htdocs/caldav.php index 0ea34be6..e52b09b8 100644 --- a/htdocs/caldav.php +++ b/htdocs/caldav.php @@ -81,11 +81,13 @@ function send_dav_header() { header( 'DAV: '.trim($v, ', '), false); } } -send_dav_header(); // Avoid polluting global namespace require_once('CalDAVRequest.php'); $request = new CalDAVRequest(); +//if ( $request->method == 'OPTIONS' || $c->always_send_dav_header ) + send_dav_header(); // Avoid polluting global namespace + $allowed = implode( ', ', array_keys($request->supported_methods) ); // header( 'Allow: '.$allowed); -- 2.11.4.GIT