git.asbjorn.biz
/
jquery.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixes #7881. Setting contentType to false will prevent the Content-Type header from...
[jquery.git]
/
src
/
ajax.js
diff --git
a/src/ajax.js
b/src/ajax.js
index
7988ab1
..
a814d80
100644
(file)
--- a/
src/ajax.js
+++ b/
src/ajax.js
@@
-559,7
+559,7
@@
jQuery.extend({
}
// Set the correct header, if data is being sent
}
// Set the correct header, if data is being sent
- if ( ( s.data && s.hasContent ) || options.contentType ) {
+ if ( s.data && s.hasContent && s.contentType !== false || options.contentType ) {
requestHeaders[ "content-type" ] = s.contentType;
}
requestHeaders[ "content-type" ] = s.contentType;
}