]> source.dussan.org Git - jquery.git/commitdiff
Send data if a DELETE Ajax request is done. Fixes #5752.
authorjeresig <jeresig@gmail.com>
Wed, 13 Jan 2010 05:42:22 +0000 (00:42 -0500)
committerjeresig <jeresig@gmail.com>
Wed, 13 Jan 2010 05:42:22 +0000 (00:42 -0500)
src/ajax.js

index 8aa6a9a1260679cdabfa2857799ba61a50d7dea4..3ef2d4f1e675405bff17c97623708655710d6365 100644 (file)
@@ -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