Skip to content
Permalink
Browse files

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

  • Loading branch information
jeresig committed Dec 5, 2009
1 parent 2a6de9a commit 9c1db29a066d693ccbef82f18c99933637a37e65
Showing with 1 addition and 1 deletion.
  1. +1 −1 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);
}

0 comments on commit 9c1db29

Please sign in to comment.
You can’t perform that action at this time.