From 23492fdf9fa6f2c3b8ee85d062fed74297f3c438 Mon Sep 17 00:00:00 2001 From: jeresig Date: Wed, 13 Jan 2010 00:42:22 -0500 Subject: [PATCH] Send data if a DELETE Ajax request is done. Fixes #5752. --- src/ajax.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ajax.js b/src/ajax.js index 8aa6a9a12..3ef2d4f1e 100644 --- a/src/ajax.js +++ b/src/ajax.js @@ -478,7 +478,7 @@ jQuery.extend({ // Send the data try { - xhr.send( type === "POST" || type === "PUT" ? s.data : null ); + xhr.send( type === "POST" || type === "PUT" || type === "DELETE" ? s.data : null ); } catch(e) { jQuery.handleError(s, xhr, null, e); // Fire the complete handlers -- 2.39.5