diff --git a/lib/api.php b/lib/api.php index da0c2417dcf1cab7a08cb3b126190416fe872b5c..e0097a7abf824590e8ae6744984364981e575ba1 100644 --- a/lib/api.php +++ b/lib/api.php @@ -94,8 +94,8 @@ class OC_API { $response = new OC_OCS_Result(null, 998, 'Api method not found'); } } else { - header('WWW-Authenticate: Basic realm="Authorisation Required"'); - header('HTTP/1.0 401 Unauthorized'); + header('WWW-Authenticate: Basic realm="Authorisation Required"'); + header('HTTP/1.0 401 Unauthorized'); $response = new OC_OCS_Result(null, 997, 'Unauthorised'); } // Send the response