Loading...
Searching...
No Matches
caldav-OPTIONS.php
<?php
dbg_error_log("OPTIONS", "method handler");
include_once('DAVResource.php');
$resource = new DAVResource($request->path);
$resource->NeedPrivilege( array('DAV::read','DAV::read-current-user-privilege-set'), true );
if ( !$resource->Exists() ) {
$request->DoResponse( 404, translate("No collection found at that location.") );
}
$allowed = implode( ', ', array_keys($resource->FetchSupportedMethods()) );
header( 'Allow: '.$allowed);
$request->DoResponse( 200, "" );
DAVResource
Definition DAVResource.php:25