From d585355bfa25b26563f21e2705269fbde23b3db9 Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Fri, 18 Oct 2013 14:11:33 +0000 Subject: dont reset headers unless necessary (makelive.php already sent them) --- itjs.class | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/itjs.class b/itjs.class index 401b794..c4e91d5 100644 --- a/itjs.class +++ b/itjs.class @@ -195,9 +195,12 @@ static function checksum($fnlist) { $origheaders = headers_list(); $result = it_cache::put($key, substr(md5(itjs::filecontents(is_array($fnlist) ? $fnlist : itjs::filenames($fnlist), false)), 0, 8)); - header_remove(); - foreach ($origheaders as $origheader) - header($origheader); # included filecontents might have modified Content-Type + if (headers_list() != $origheaders) + { + header_remove(); + foreach ($origheaders as $origheader) + header($origheader); # included filecontents might have modified Content-Type + } } return $result; -- cgit v1.2.3