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:
authormichaelletzgus <michaelletzgus@users.noreply.github.com>2018-11-18 16:03:03 +0300
committerGitHub <noreply@github.com>2018-11-18 16:03:03 +0300
commit0a1135fed08d7d650d4b95afcc50fa6672082880 (patch)
treea18194f121ff39fe44604a21f4ea551e48693211
parent662f8711f2a89749747daec74e9f097870bc2054 (diff)
Accidentally committed to master, revert.
-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",