mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-11-29 08:56:03 +00:00
We will add a setting to disable the DAV header on non-OPTIONS requests.
This commit is contained in:
1 parent
d0fffe490a
commit
e49d3dd225
1 file changed
+3
-1
+3
-1
@@ -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);
|
||||
|
||||
|
||||
Reference in new issue
Block a user