aboutsummaryrefslogtreecommitdiffstats
path: root/src/ajax.js
diff options
context:
space:
mode:
authorjeresig <jeresig@gmail.com>2009-12-05 18:06:27 -0500
committerjeresig <jeresig@gmail.com>2009-12-05 18:06:27 -0500
commit9c1db29a066d693ccbef82f18c99933637a37e65 (patch)
tree1c0fe4ddd2f154137cf46f210107204d159aad6a /src/ajax.js
parent2a6de9ab66653e5e424d9cc79d195b555158d04f (diff)
downloadjquery-9c1db29a066d693ccbef82f18c99933637a37e65.tar.gz
jquery-9c1db29a066d693ccbef82f18c99933637a37e65.zip
Adding in an extra check, per the comments in 25b0ba9f9612583033b902a0e40345463a3a71d0.
Diffstat (limited to 'src/ajax.js')
-rw-r--r--src/ajax.js2
1 files changed, 1 insertions, 1 deletions
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);
}