Skip to content
Permalink
Browse files

Make sure payload is sent for PUT requests. (Thanks alx). Fixes #4971.

  • Loading branch information
jeresig committed Jul 27, 2009
1 parent 255a293 commit 8c18dcdeb08b8e2b908c17efd760ff25635f3749
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/ajax.js
@@ -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);
}

0 comments on commit 8c18dcd

Please sign in to comment.
You can’t perform that action at this time.