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:
authorc4539 <simon@shareworx.net>2017-04-20 22:37:03 +0300
committerc4539 <simon@shareworx.net>2017-04-20 22:37:03 +0300
commit8769f0ee755d8a04caa837e6131d9c1154d0a52c (patch)
tree18bbb967fbe8c051953ba2ccca2ad08deeefe34d
parenta0f8dea1aa188dafaf92c9b2eb51c6d51814d9ca (diff)
Fix for https://github.com/guillaumev/owncloud_for_filelink/issues/47
-rw-r--r--src/components/nsNextcloud.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/components/nsNextcloud.js b/src/components/nsNextcloud.js
index 746b629..e6adb36 100644
--- a/src/components/nsNextcloud.js
+++ b/src/components/nsNextcloud.js
@@ -800,6 +800,8 @@ NextcloudFileUploader.prototype = {
req.setRequestHeader('Content-Type', "application/x-www-form-urlencoded");
req.setRequestHeader("Content-Length", String(formData.length));
req.setRequestHeader("OCS-APIREQUEST", "true");
+ req.setRequestHeader("Authorization",
+ "Basic " + btoa(this.nextcloud._userName + ':' + this.nextcloud._password));
req.onload = function () {