diff options
author | jeresig <jeresig@gmail.com> | 2010-01-13 00:42:22 -0500 |
---|---|---|
committer | jeresig <jeresig@gmail.com> | 2010-01-13 00:42:22 -0500 |
commit | 23492fdf9fa6f2c3b8ee85d062fed74297f3c438 (patch) | |
tree | 02b13374ef2e548fb28888c92d8e927164a4f32f | |
parent | 5d49335eace4311de890b871e057d8b6e9122eb6 (diff) | |
download | jquery-23492fdf9fa6f2c3b8ee85d062fed74297f3c438.tar.gz jquery-23492fdf9fa6f2c3b8ee85d062fed74297f3c438.zip |
Send data if a DELETE Ajax request is done. Fixes #5752.
-rw-r--r-- | src/ajax.js | 2 |
1 files changed, 1 insertions, 1 deletions
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 |