Make sure payload is sent for PUT requests. (Thanks alx). Fixes #4971.
This commit is contained in:
parent
255a293cda
commit
8c18dcdeb0
|
@ -451,7 +451,7 @@ jQuery.extend({
|
||||||
|
|
||||||
// Send the data
|
// Send the data
|
||||||
try {
|
try {
|
||||||
xhr.send( type === "POST" ? s.data : null );
|
xhr.send( type === "POST" || type === "PUT" ? s.data : null );
|
||||||
} catch(e) {
|
} catch(e) {
|
||||||
jQuery.handleError(s, xhr, null, e);
|
jQuery.handleError(s, xhr, null, e);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue