aboutsummaryrefslogtreecommitdiffstats
path: root/test/data/script.php
diff options
context:
space:
mode:
Diffstat (limited to 'test/data/script.php')
-rw-r--r--test/data/script.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/data/script.php b/test/data/script.php
index 55d7bc209..fb7110491 100644
--- a/test/data/script.php
+++ b/test/data/script.php
@@ -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." );