More memory efficient image pass through

This commit is contained in:
Thomas Casteleyn
2020-07-08 13:18:54 +02:00
committed by Molkobain
parent e4ab543aff
commit c2b72c7688

View File

@@ -143,14 +143,14 @@ if (file_exists($sDotExecutable))
else
{
header('Content-type: image/png');
echo file_get_contents($sImageFilePath);
readfile($sImageFilePath);
}
@unlink($sDotFilePath);
}
else
{
header('Content-type: image/png');
echo file_get_contents($sImageFilePath);
readfile($sImageFilePath);
}
?>