From 703275736ac4a2e5483dc5fddf2dcc9bf2db47a7 Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Thu, 30 Aug 2018 17:02:02 +0200 Subject: minor cleanup --- itjs.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'itjs.php') diff --git a/itjs.php b/itjs.php index d61284c..a8305b5 100644 --- a/itjs.php +++ b/itjs.php @@ -74,10 +74,9 @@ else if (it::match('\.htc$', $lastfile)) } else if (!it::match('\.html$', $lastfile)) { + header("Content-Type: application/x-javascript; charset=" . (ini_get('default_charset') ?: 'iso-8859-1')); $data = "window.trace+='i';\n$data\nwindow.trace+='I';\n"; $data .= "\nwindow.it_gotjs = (window.it_gotjs ? window.it_gotjs : '') + '." . it::match('\w+', basename($lastfile)) . "';\n"; - $charset = ini_get('default_charset') ?: 'iso-8859-1'; - header("Content-Type: application/x-javascript; charset=$charset"); } $data = itjs::strip($data); -- cgit v1.2.3