summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUrban Müller2019-07-03 15:37:58 +0200
committerUrban Müller2019-07-03 15:37:58 +0200
commitd42ccc282042c9040d4402d8009e5f5208c3124a (patch)
tree9d810ad9038d937fa2817afa280349e18c119aa7
parent0bbd8aea0363104e2d79542a5f0377edc3d0b3ff (diff)
downloaditools-d42ccc282042c9040d4402d8009e5f5208c3124a.tar.gz
itools-d42ccc282042c9040d4402d8009e5f5208c3124a.tar.bz2
itools-d42ccc282042c9040d4402d8009e5f5208c3124a.zip
no errors if headers were sent because of keepalive-output
-rw-r--r--itjs.class5
1 files 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
}
/**