summaryrefslogtreecommitdiffstats
path: root/lib/api.php
diff options
context:
space:
mode:
authorBernhard Posselt <nukeawhale@gmail.com>2013-05-02 14:49:05 +0200
committerBernhard Posselt <nukeawhale@gmail.com>2013-05-03 15:39:45 +0200
commit5db33b47c2868473b9ce0f6a31cb939ccc1c8c68 (patch)
tree50342646e444540bda9a89bfa87858537cf293ae /lib/api.php
parent6c2614351647b2d0c8c85ba500015849268108bc (diff)
downloadnextcloud-server-5db33b47c2868473b9ce0f6a31cb939ccc1c8c68.tar.gz
nextcloud-server-5db33b47c2868473b9ce0f6a31cb939ccc1c8c68.zip
logout before output to not run into header already sent problems
Diffstat (limited to 'lib/api.php')
-rw-r--r--lib/api.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/api.php b/lib/api.php
index 8e4c3ef29b9..c74ffc1a557 100644
--- a/lib/api.php
+++ b/lib/api.php
@@ -112,8 +112,9 @@ class OC_API {
$response = self::mergeResponses($responses);
$formats = array('json', 'xml');
$format = !empty($_GET['format']) && in_array($_GET['format'], $formats) ? $_GET['format'] : 'xml';
- self::respond($response);
OC_User::logout();
+
+ self::respond($response);
}
/**