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
Arthurevans, HTTP header names are indeed case insensitive, although the use of camel case make the framework looks more mature and give more confidence to users. I know is just glitter, and again doesn't hurt to change.
Description
iron-ajax
send the "content-type" header instead of "Content-Type"Expected outcome
Send "Content-Type"
Actual outcome
Live Demo
In file "iron-ajax.html", line 410:
get requestHeaders() {
var headers = {};
var contentType = this.contentType;
if (contentType == null && (typeof this.body === 'string')) {
contentType = 'application/x-www-form-urlencoded';
}
if (contentType) {
headers['content-type'] = contentType; // Change to 'Content-Type'
}
var header;
if (typeof this.headers === 'object') {
for (header in this.headers) {
headers[header] = this.headers[header].toString();
}
}
return headers;
}
Steps to reproduce
Browsers Affected
The text was updated successfully, but these errors were encountered: