respect format output
This commit is contained in:
parent
0f38e6ec9c
commit
11afb2e5a8
|
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue