git.asbjorn.biz
/
jquery.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Make sure payload is sent for PUT requests. (Thanks alx). Fixes #4971.
[jquery.git]
/
src
/
ajax.js
diff --git
a/src/ajax.js
b/src/ajax.js
index
adae6ae
..
c6b8d0f
100644
(file)
--- a/
src/ajax.js
+++ b/
src/ajax.js
@@
-451,7
+451,7
@@
jQuery.extend({
// Send the data
try {
- xhr.send( type === "POST" ? s.data : null );
+ xhr.send( type === "POST" || type === "PUT" ? s.data : null );
} catch(e) {
jQuery.handleError(s, xhr, null, e);
}