Merge pull request #22612 from owncloud/davclient-update-headers

Update davclient.js for headers fix
This commit is contained in:
Thomas Müller 2016-02-24 12:16:38 +01:00
commit 0cd097e771
1 changed files with 2 additions and 1 deletions

View File

@ -164,7 +164,8 @@ dav.Client.prototype = {
var self = this;
var xhr = this.xhrProvider();
headers = headers || {};
if (this.userName) {
headers['Authorization'] = 'Basic ' + btoa(this.userName + ':' + this.password);
// xhr.open(method, this.resolveUrl(url), true, this.userName, this.password);