X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=src%2Fajax.js;h=2c4f13cb2c3b1992b19863668432b34ec7ee1f81;hb=c90d609c0d10a8792b0b31e226592fd707f45570;hp=47f243e55a4492f0126835a602b627132e45cf27;hpb=c34a62f8abbd9598e7a6647754c449ce92418b3a;p=jquery.git diff --git a/src/ajax.js b/src/ajax.js index 47f243e..2c4f13c 100644 --- a/src/ajax.js +++ b/src/ajax.js @@ -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 );