diff options
author | Urban Müller | 2013-10-18 14:11:33 +0000 |
---|---|---|
committer | Urban Müller | 2013-10-18 14:11:33 +0000 |
commit | d585355bfa25b26563f21e2705269fbde23b3db9 (patch) | |
tree | d1590192629c548299a921f6c7f63633ffa7ff43 | |
parent | 38ad0880d982d4c449a4f2cf26e91fa6af86b149 (diff) | |
download | itools-d585355bfa25b26563f21e2705269fbde23b3db9.tar.gz itools-d585355bfa25b26563f21e2705269fbde23b3db9.tar.bz2 itools-d585355bfa25b26563f21e2705269fbde23b3db9.zip |
dont reset headers unless necessary (makelive.php already sent them)
-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; |