Adding in an extra check, per the comments in 25b0ba9f96.

This commit is contained in:
jeresig 2009-12-05 18:06:27 -05:00
parent 2a6de9ab66
commit 9c1db29a06

View file

@ -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);
} }