Skip to content

Commit d556a83

Browse files
authored
Merge pull request #19 from c4539/master
Fix for guillaumev/owncloud_for_filelink#47
2 parents 9d65dcc + 8769f0e commit d556a83

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/components/nsNextcloud.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -842,6 +842,8 @@ NextcloudFileUploader.prototype = {
842842
req.setRequestHeader('Content-Type', "application/x-www-form-urlencoded");
843843
req.setRequestHeader("Content-Length", String(formData.length));
844844
req.setRequestHeader("OCS-APIREQUEST", "true");
845+
req.setRequestHeader("Authorization",
846+
"Basic " + btoa(this.nextcloud._userName + ':' + this.nextcloud._password));
845847

846848
req.onload = function () {
847849

0 commit comments

Comments
 (0)