Update davclient.js for headers fix

This commit is contained in:
Vincent Petry 2016-02-24 10:09:54 +01:00
parent 0d715c1184
commit a92cba3dbe
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);