We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0a1a860 commit 00fb24fCopy full SHA for 00fb24f
src/ajax.js
@@ -349,7 +349,7 @@ jQuery.extend({
349
// Need an extra try/catch for cross domain requests in Firefox 3
350
try {
351
// Set the correct header, if data is being sent
352
- if ( s.data || origSettings && origSettings.contentType ) {
+ if ( s.data || type === "POST" || origSettings.contentType ) {
353
xhr.setRequestHeader("Content-Type", s.contentType);
354
}
355
0 commit comments