git.asbjorn.biz
/
jquery.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2a6de9a
)
Adding in an extra check, per the comments in 25b0ba9f9612583033b902a0e40345463a3a71d0.
author
jeresig
<jeresig@gmail.com>
Sat, 5 Dec 2009 23:06:27 +0000
(18:06 -0500)
committer
jeresig
<jeresig@gmail.com>
Sat, 5 Dec 2009 23:06:27 +0000
(18:06 -0500)
src/ajax.js
patch
|
blob
|
history
diff --git
a/src/ajax.js
b/src/ajax.js
index
9442608
..
568a75d
100644
(file)
--- 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);
}