From 9c1db29a066d693ccbef82f18c99933637a37e65 Mon Sep 17 00:00:00 2001 From: jeresig Date: Sat, 5 Dec 2009 18:06:27 -0500 Subject: [PATCH] Adding in an extra check, per the comments in 25b0ba9f9612583033b902a0e40345463a3a71d0. --- src/ajax.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ajax.js b/src/ajax.js index 94426085e..568a75dce 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); } -- 2.39.5