X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=src%2Fajax.js;h=c6b8d0fa054c0bd1173efcfab07aeeaa996f15ac;hb=bddd1837bb512b0ed537fbbdecf3ac3f6067adba;hp=adae6aec7493b52bcd35a40b78d129affdfce38c;hpb=fe80b5af45049d1c8d10682eb1075f838d52a045;p=jquery.git diff --git a/src/ajax.js b/src/ajax.js index adae6ae..c6b8d0f 100644 --- a/src/ajax.js +++ b/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); }