Adding in an extra check, per the comments in 25b0ba9f9612583033b902a0e40345463a3a71d0.
authorjeresig <jeresig@gmail.com>
Sat, 5 Dec 2009 23:06:27 +0000 (18:06 -0500)
committerjeresig <jeresig@gmail.com>
Sat, 5 Dec 2009 23:06:27 +0000 (18:06 -0500)
src/ajax.js

index 9442608..568a75d 100644 (file)
@@ -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);
                        }