mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-11-29 08:56:03 +00:00
Switch to always sending an 'Allow:' header.
This commit is contained in:
1 parent
477ced3012
commit
d5a60406bf
169 files changed
+170
-21
No files matched your search
@@ -29,6 +29,9 @@ header( "DAV: $dav");
|
||||
require_once("CalDAVRequest.php");
|
||||
$request = new CalDAVRequest();
|
||||
|
||||
$allowed = implode( ', ', array_keys($request->supported_methods) );
|
||||
header( "Allow: $allowed");
|
||||
|
||||
if ( ! ($request->IsPrincipal() || isset($request->collection) || $request->method == 'PUT' || $request->method == 'MKCALENDAR' || $request->method == 'MKCOL' ) ) {
|
||||
if ( preg_match( '#^/principals/users(/.*/)$#', $request->path, $matches ) ) {
|
||||
// Although this doesn't work with the iPhone, perhaps it will with iCal...
|
||||
|
||||
Reference in new issue
Block a user