From 8c18dcdeb08b8e2b908c17efd760ff25635f3749 Mon Sep 17 00:00:00 2001 From: John Resig Date: Mon, 27 Jul 2009 19:02:40 +0000 Subject: [PATCH] Make sure payload is sent for PUT requests. (Thanks alx). Fixes #4971. --- src/ajax.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ajax.js b/src/ajax.js index adae6aec7..c6b8d0fa0 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); } -- 2.39.5