diff options
Diffstat (limited to 'itjs.class')
-rw-r--r-- | itjs.class | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -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; |