mirror of
https://github.com/jquery/jquery.git
synced 2026-01-25 14:08:13 -05:00
Make sure payload is sent for PUT requests. (Thanks alx). Fixes #4971.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user