Script dataType now supports ecmascript mimetypes.
This commit is contained in:
parent
f286a716d5
commit
e0b1bb8e3d
3 changed files with 21 additions and 11 deletions
|
@ -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." );
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue