Make sure payload is sent for PUT requests. (Thanks alx). Fixes #4971.

This commit is contained in:
John Resig 2009-07-27 19:02:40 +00:00
parent 255a293cda
commit 8c18dcdeb0

View file

@ -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);
}