Fixing request data param issue. Thanks to mislav for the patch. Fixes #5123.
[jquery.git] / src / ajax.js
index 47f243e..2c4f13c 100644 (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 );