diff options
Diffstat (limited to 'lib/api.php')
-rw-r--r-- | lib/api.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/api.php b/lib/api.php index c74ffc1a557..fc76836995b 100644 --- a/lib/api.php +++ b/lib/api.php @@ -111,10 +111,11 @@ class OC_API { } $response = self::mergeResponses($responses); $formats = array('json', 'xml'); + $format = !empty($_GET['format']) && in_array($_GET['format'], $formats) ? $_GET['format'] : 'xml'; OC_User::logout(); - - self::respond($response); + + self::respond($response, $format); } /** |