Adding in an extra check, per the comments in 25b0ba9f96
.
This commit is contained in:
parent
2a6de9ab66
commit
9c1db29a06
|
@ -331,7 +331,7 @@ jQuery.extend({
|
||||||
// Need an extra try/catch for cross domain requests in Firefox 3
|
// Need an extra try/catch for cross domain requests in Firefox 3
|
||||||
try {
|
try {
|
||||||
// Set the correct header, if data is being sent
|
// Set the correct header, if data is being sent
|
||||||
if ( s.data || origSettings.contentType ) {
|
if ( s.data || origSettings && origSettings.contentType ) {
|
||||||
xhr.setRequestHeader("Content-Type", s.contentType);
|
xhr.setRequestHeader("Content-Type", s.contentType);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue