mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-11 07:50:16 +01:00
* REST API: also log requests with Content-Type 'application/json' not just 'text/*'
This commit is contained in:
parent
b42aa1c828
commit
b924e3a03d
@ -2351,7 +2351,8 @@ class CalDAV extends HTTP_WebDAV_Server
|
|||||||
// do NOT log non-text attachments
|
// do NOT log non-text attachments
|
||||||
$this->store_request = $_SERVER['REQUEST_METHOD'] != 'POST' ||
|
$this->store_request = $_SERVER['REQUEST_METHOD'] != 'POST' ||
|
||||||
!self::isFileUpload() ||
|
!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
|
// unconditionally start output-buffering to fix problems with huge multiget reports from TB110 AB
|
||||||
ob_start();
|
ob_start();
|
||||||
|
Loading…
Reference in New Issue
Block a user