]> source.dussan.org Git - jquery.git/commitdiff
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 94426085e46d11e91c8d885bebd802c31258f26f..568a75dce1a8df9cec9a1b52a185599cac7a9daa 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);
                        }