Skip to content

Commit 23492fd

Browse files
committed
Send data if a DELETE Ajax request is done. Fixes jquery#5752.
1 parent 5d49335 commit 23492fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ajax.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -478,7 +478,7 @@ jQuery.extend({
478478

479479
// Send the data
480480
try {
481-
xhr.send( type === "POST" || type === "PUT" ? s.data : null );
481+
xhr.send( type === "POST" || type === "PUT" || type === "DELETE" ? s.data : null );
482482
} catch(e) {
483483
jQuery.handleError(s, xhr, null, e);
484484
// Fire the complete handlers

0 commit comments

Comments
 (0)