From 9904ca59dea562db3c5ac375fa89f6fb31fbf0a3 Mon Sep 17 00:00:00 2001 From: ralf Date: Tue, 11 Jul 2023 14:08:09 +0200 Subject: [PATCH] WIP Mail REST API: fix failed POST request to create a contact (gave 501 Not Implemented) --- api/src/CalDAV.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/src/CalDAV.php b/api/src/CalDAV.php index 23bd177ec3..b8d68fb539 100644 --- a/api/src/CalDAV.php +++ b/api/src/CalDAV.php @@ -1502,7 +1502,7 @@ class CalDAV extends HTTP_WebDAV_Server // POST to the collection URL plus a UID like name component (like for regular PUT) to create new entrys if (isset($_GET['add-member']) || Handler::get_agent() == 'cfnetwork' || // addressbook has not implemented a POST handler, therefore we have to call the PUT handler - preg_match('#^(/[^/]+)?/addressbook(-[^/]+)?/$', $options['path']) && self::isJSON()) + preg_match('#^(/[^/]+)?/addressbook(-[^/]+)?/$#', $options['path']) && self::isJSON()) { $_GET['add-member'] = ''; // otherwise we give no Location header return $this->PUT($options, 'POST');