diff options
author | c4539 <simon@shareworx.net> | 2017-04-20 22:37:03 +0300 |
---|---|---|
committer | c4539 <simon@shareworx.net> | 2017-04-20 22:37:03 +0300 |
commit | 8769f0ee755d8a04caa837e6131d9c1154d0a52c (patch) | |
tree | 18bbb967fbe8c051953ba2ccca2ad08deeefe34d | |
parent | a0f8dea1aa188dafaf92c9b2eb51c6d51814d9ca (diff) |
Fix for https://github.com/guillaumev/owncloud_for_filelink/issues/47
-rw-r--r-- | src/components/nsNextcloud.js | 2 |
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 () { |