From d42ccc282042c9040d4402d8009e5f5208c3124a Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Wed, 3 Jul 2019 15:37:58 +0200 Subject: no errors if headers were sent because of keepalive-output --- itjs.class | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/itjs.class b/itjs.class index 7922cdc..2e7cf48 100644 --- a/itjs.class +++ b/itjs.class @@ -33,9 +33,8 @@ function send_headers($charset = null) self::$charset = $charset; - header("Content-Type: application/x-javascript; charset=$charset"); - - header('Expires: ' . gmdate('D, d M Y H:i:s', time()+10) . ' GMT'); # prevent broken data on IE reloads + @header("Content-Type: application/x-javascript; charset=$charset"); + @header('Expires: ' . gmdate('D, d M Y H:i:s', time()+10) . ' GMT'); # prevent broken data on IE reloads } /** -- cgit v1.2.3