summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Bruederli <thomas@roundcube.net>2014-02-10 21:06:01 (GMT)
committerThomas Bruederli <thomas@roundcube.net>2014-02-10 21:06:01 (GMT)
commit14cb495db966cb2b1c2ccc95d472d1217b2e937f (patch)
tree7e456b7b0b80546f32b16d6a7b9440efa5ec6416
parentbd29d31860e88f2a9c7a5da8725c7b4c6b13befc (diff)
downloadiRony-14cb495db966cb2b1c2ccc95d472d1217b2e937f.tar.gz
Also log application/xml request bodies
-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 b45d094..deb57ad 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.