We will add a setting to disable the DAV header on non-OPTIONS requests.

This commit is contained in:
Andrew McMillan 2013-09-26 14:24:38 +02:00
parent d0fffe490a
commit e49d3dd225

View File

@ -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);