mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-03-13 08:00:15 +00:00
We will add a setting to disable the DAV header on non-OPTIONS requests.
This commit is contained in:
parent
d0fffe490a
commit
e49d3dd225
@ -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);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user