Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/nextcloud-filelink.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/components/nsNextcloud.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/components/nsNextcloud.js b/src/components/nsNextcloud.js
index f388555..f20ab9a 100644
--- a/src/components/nsNextcloud.js
+++ b/src/components/nsNextcloud.js
@@ -39,7 +39,6 @@ Cu.importGlobalProperties(["XMLHttpRequest"]);
const kRestBase = "/ocs/v1.php";
const kAuthPath = kRestBase + "/cloud/user";
-const kInfoPath = kRestBase + "/cloud/users";
const kShareApp = kRestBase + "/apps/files_sharing/api/v1/shares";
const kWebDavPath = "/remote.php/webdav";
@@ -577,7 +576,7 @@ Nextcloud.prototype = {
let args = "?format=json";
let req = new XMLHttpRequest(Ci.nsIXMLHttpRequest);
- req.open("GET", this._fullUrl + kInfoPath + '/' + this._userName + args, true);
+ req.open("GET", this._fullUrl + kAuthPath + args, true);
req.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
req.setRequestHeader("OCS-APIREQUEST", "true");
req.setRequestHeader("Authorization",