Merge pull request #22612 from owncloud/davclient-update-headers
Update davclient.js for headers fix
This commit is contained in:
commit
0cd097e771
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue