Fixing request data param issue. Thanks to mislav for the patch. Fixes #5123.

This commit is contained in:
jeresig 2010-06-14 23:08:28 -04:00
parent c34a62f8ab
commit c90d609c0d
3 changed files with 15 additions and 1 deletions

View file

@ -484,7 +484,7 @@ jQuery.extend({
// Send the data
try {
xhr.send( type === "POST" || type === "PUT" || type === "DELETE" ? s.data : null );
xhr.send( (type !== "GET" && s.data) || null );
} catch( sendError ) {
jQuery.ajax.handleError( s, xhr, null, e );