From: jeresig Date: Sat, 5 Dec 2009 23:06:27 +0000 (-0500) Subject: Adding in an extra check, per the comments in 25b0ba9f9612583033b902a0e40345463a3a71d0. X-Git-Url: http://git.asbjorn.it/?a=commitdiff_plain;h=9c1db29a066d693ccbef82f18c99933637a37e65;p=jquery.git Adding in an extra check, per the comments in 25b0ba9f9612583033b902a0e40345463a3a71d0. --- diff --git a/src/ajax.js b/src/ajax.js index 9442608..568a75d 100644 --- a/src/ajax.js +++ b/src/ajax.js @@ -331,7 +331,7 @@ jQuery.extend({ // Need an extra try/catch for cross domain requests in Firefox 3 try { // 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); }