DAViCal
Loading...
Searching...
No Matches
caldav-OPTIONS.php
1<?php
11dbg_error_log("OPTIONS", "method handler");
12
13include_once('DAVResource.php');
14$resource = new DAVResource($request->path);
15
21$resource->NeedPrivilege( array('DAV::read','DAV::read-current-user-privilege-set'), true );
22
23if ( !$resource->Exists() ) {
24 $request->DoResponse( 404, translate("No collection found at that location.") );
25}
26
27$allowed = implode( ', ', array_keys($resource->FetchSupportedMethods()) );
28header( 'Allow: '.$allowed);
29
30$request->DoResponse( 200, "" );
31