summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Bruederli <bruederli@kolabsys.com>2014-10-27 13:35:41 (GMT)
committerThomas Bruederli <bruederli@kolabsys.com>2014-10-27 13:35:41 (GMT)
commit8ac98c43231eccbb9e254c6f001c8d9f99fa1c03 (patch)
tree3fcc0accc3a0c997a59c04c4e77ba32a26da112e
parent9888161d9420ba03e9f651574a4960e0574fa85e (diff)
downloadiRony-8ac98c43231eccbb9e254c6f001c8d9f99fa1c03.tar.gz
Log request bodies of type application/xml, too
-rw-r--r--lib/Kolab/Utils/DAVLogger.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Kolab/Utils/DAVLogger.php b/lib/Kolab/Utils/DAVLogger.php
index 3325544..0e12671 100644
--- a/lib/Kolab/Utils/DAVLogger.php
+++ b/lib/Kolab/Utils/DAVLogger.php
@@ -87,7 +87,7 @@ class DAVLogger extends DAV\ServerPlugin
if ($this->loglevel & self::HTTP_REQUEST) {
$request = $this->server->httpRequest;
$content_type = $request->getHeader('CONTENT_TYPE');
- if (strpos($content_type, 'text/') === 0) {
+ if (strpos($content_type, 'text/') === 0 || strpos($content_type, 'application/xml') == 0) {
$http_body = $request->getBody(true);
// Hack for reading php:://input because that stream can only be read once.