Switch to always sending an 'Allow:' header.

This commit is contained in:
Andrew McMillan committed 2009-11-05 16:20:01 +13:00
1 parent 477ced3012
commit d5a60406bf
169 files changed
+170 -21

No files matched your search

+3
View File
@@ -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...