Skip to content
Snippets Groups Projects
Commit 266ba280 authored by Tom Needham's avatar Tom Needham
Browse files

Remove debug call, correct app identifier

parent 5ad1b63f
Branches
No related tags found
No related merge requests found
......@@ -6,4 +6,4 @@
*/
// Register with the capabilities API
OC_API::register('get', '/cloud/capabilities', array('OCA\Files_Versions\Capabilities', 'getCapabilities'), 'ocs', OC_API::USER_AUTH);
\ No newline at end of file
OC_API::register('get', '/cloud/capabilities', array('OCA\Files_Versions\Capabilities', 'getCapabilities'), 'files_versions', OC_API::USER_AUTH);
\ No newline at end of file
......@@ -117,7 +117,6 @@ class OC_API {
'response' => call_user_func($action['action'], $parameters),
);
}
$response = self::mergeResponses($responses);
$formats = array('json', 'xml');
$format = !empty($_GET['format']) && in_array($_GET['format'], $formats) ? $_GET['format'] : 'xml';
......@@ -249,7 +248,6 @@ class OC_API {
*/
private static function respond($result, $format='xml') {
// Send 401 headers if unauthorised
die(var_dump($result));
if($result->getStatusCode() === self::RESPOND_UNAUTHORISED) {
header('WWW-Authenticate: Basic realm="Authorisation Required"');
header('HTTP/1.0 401 Unauthorized');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment