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

@ -1163,6 +1163,19 @@ test("data option: evaluate function values (#2806)", function() {
})
});
test("data option: empty bodies for non-GET requests", function() {
stop();
jQuery.ajax({
url: "data/echoData.php",
data: undefined,
type: "post",
success: function(result) {
equals( result, "" );
start();
}
})
});
test("jQuery.ajax - If-Modified-Since support", function() {
expect( 3 );