From 3fb0b392fae40e5748b9750b2ed49c0a782f72cc Mon Sep 17 00:00:00 2001 From: Andrew McMillan Date: Thu, 24 Dec 2009 20:37:43 +1300 Subject: [PATCH] Move the Allow response back into OPTIONS where it really belongs. --- inc/caldav-OPTIONS.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/inc/caldav-OPTIONS.php b/inc/caldav-OPTIONS.php index 0b0971c3..00556f58 100644 --- a/inc/caldav-OPTIONS.php +++ b/inc/caldav-OPTIONS.php @@ -45,5 +45,8 @@ if ( !$exists ) { $request->DoResponse( 404, translate("No collection found at that location.") ); } +$allowed = implode( ', ', array_keys($request->supported_methods) ); +header( 'Allow: '.$allowed); + $request->DoResponse( 200, "" );