You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
var url = this.target.replace("<name>", file.name);
xhr.open(this.method, url, true);
for (key in this.headers) {
if (headers.hasOwnProperty(key)) {
xhr.setRequestHeader(key, this.headers[key]);
}
}
Should be:
var url = this.target.replace("<name>", file.name);
xhr.open(this.method, url, true);
for (key in this.headers) {
if (this.headers.hasOwnProperty(key)) {
xhr.setRequestHeader(key, this.headers[key]);
}
}
The change is this.headers in the if-statement. Without this, it'll throw an error that headers is undefined.
The text was updated successfully, but these errors were encountered:
Hey I found a bug when using headers.
Should be:
The change is this.headers in the if-statement. Without this, it'll throw an error that headers is undefined.
The text was updated successfully, but these errors were encountered: