diff --git a/api/src/CalDAV.php b/api/src/CalDAV.php index d230725795..319d116a8c 100644 --- a/api/src/CalDAV.php +++ b/api/src/CalDAV.php @@ -2351,7 +2351,8 @@ class CalDAV extends HTTP_WebDAV_Server // do NOT log non-text attachments $this->store_request = $_SERVER['REQUEST_METHOD'] != 'POST' || !self::isFileUpload() || - substr($_SERVER['CONTENT_TYPE'], 0, 5) == 'text/'; + substr($_SERVER['CONTENT_TYPE'], 0, 5) == 'text/' || + str_starts_with($_SERVER['CONTENT_TYPE'], 'application/json'); } // unconditionally start output-buffering to fix problems with huge multiget reports from TB110 AB ob_start();