* REST API: also log requests with Content-Type 'application/json' not just 'text/*'

This commit is contained in:
ralf 2024-01-26 12:53:22 +02:00
parent b42aa1c828
commit b924e3a03d

View File

@ -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();