Added in support for content-type sniffing for scripts. Fixes #5718.
[jquery.git] / test / unit / ajax.js
index b1cb486..9b1e323 100644 (file)
@@ -797,6 +797,20 @@ test("jQuery.ajax() - script, Remote with scheme-less URL", function() {
        });
 });
 
+test("jQuery.ajax() - script by content-type", function() {
+       expect(1);
+
+       stop();
+
+       jQuery.ajax({
+               url: "data/script.php",
+               data: { header: "script" },
+               success: function() {
+                       start();
+               }
+       });
+});
+
 test("jQuery.ajax() - json by content-type", function() {
        expect(5);