Skip to content

Commit

Permalink
Revert
Browse files Browse the repository at this point in the history
Accidentally committed to master, revert.
  • Loading branch information
michaelletzgus authored Nov 18, 2018
1 parent 662f871 commit 0a1135f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/components/nsNextcloud.js
Original file line number Diff line number Diff line change
Expand Up @@ -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";

Expand Down Expand Up @@ -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",
Expand Down

0 comments on commit 0a1135f

Please sign in to comment.