Fix #1987 by only doing remote <script> type ajax with GET requests. All other types will be passed on to XMLHttpRequest.
This commit is contained in:
parent
227f8b2514
commit
c6a44c7943
2 changed files with 21 additions and 2 deletions
|
@ -573,6 +573,25 @@ test("$.ajax() - script, Remote", function() {
|
|||
});
|
||||
});
|
||||
|
||||
test("$.ajax() - script, Remote with POST", function() {
|
||||
expect(3);
|
||||
|
||||
var base = window.location.href.replace(/\?.*$/, "");
|
||||
|
||||
stop();
|
||||
|
||||
$.ajax({
|
||||
url: base + "data/test.js",
|
||||
type: "POST",
|
||||
dataType: "script",
|
||||
success: function(data, status){
|
||||
ok( foobar, "Script results returned (GET, no callback)" );
|
||||
equals( status, "success", "Script results returned (GET, no callback)" );
|
||||
start();
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
test("$.getJSON(String, Hash, Function) - JSON array", function() {
|
||||
expect(4);
|
||||
stop();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue