Merge pull request #22612 from owncloud/davclient-update-headers
Update davclient.js for headers fix
This commit is contained in:
commit
0cd097e771
1 changed files with 2 additions and 1 deletions
3
core/vendor/davclient.js/lib/client.js
vendored
3
core/vendor/davclient.js/lib/client.js
vendored
|
@ -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 a new issue