Script dataType now supports ecmascript mimetypes.
[jquery.git] / test / data / script.php
index 55d7bc2..fb71104 100644 (file)
@@ -1,7 +1,11 @@
 <?php
 error_reporting(0);
 if ( $_REQUEST['header'] ) {
-       header("Content-type: text/javascript");
+       if ( $_REQUEST['header'] == "ecma" ) {
+               header("Content-type: application/ecmascript");
+       } else {
+               header("Content-type: text/javascript");
+       }
 }
 ?>
 ok( true, "Script executed correctly." );