summaryrefslogtreecommitdiffstats
path: root/lib/private/api.php
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2014-06-30 15:37:38 +0200
committerVincent Petry <pvince81@owncloud.com>2014-06-30 15:37:38 +0200
commit972fffbe02d1e0493d498859b76de698ecf5d067 (patch)
treefbf15344e9bc77d23e5dacca36fa48632f80f507 /lib/private/api.php
parent2e45eb8ad69d8978220e0b3ea4314545cb08fa6f (diff)
downloadnextcloud-server-972fffbe02d1e0493d498859b76de698ecf5d067.tar.gz
nextcloud-server-972fffbe02d1e0493d498859b76de698ecf5d067.zip
Return 503 OCS response with requested format
Diffstat (limited to 'lib/private/api.php')
-rw-r--r--lib/private/api.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/api.php b/lib/private/api.php
index 74887690952..e9c144564f0 100644
--- a/lib/private/api.php
+++ b/lib/private/api.php
@@ -301,7 +301,7 @@ class OC_API {
* @param OC_OCS_Result $result
* @param string $format the format xml|json
*/
- private static function respond($result, $format='xml') {
+ public static function respond($result, $format='xml') {
// Send 401 headers if unauthorised
if($result->getStatusCode() === self::RESPOND_UNAUTHORISED) {
header('WWW-Authenticate: Basic realm="Authorisation Required"');