Commit 9c1db29a authored by jeresig's avatar jeresig

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

parent 2a6de9ab
...@@ -331,7 +331,7 @@ jQuery.extend({ ...@@ -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);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment