Fix #2376 unnecessary header output in menu, document, layout modules

This commit is contained in:
Kijin Sung 2024-07-15 10:14:37 +09:00
parent f2bd5280c1
commit e4c3c5ac6c
3 changed files with 5 additions and 16 deletions

View file

@ -618,11 +618,8 @@ class LayoutAdminController extends Layout
$stream = $tar->toTarStream();
$filename = 'faceoff_' . date('YmdHis') . '.tar';
header("Cache-Control: ");
header("Pragma: ");
Context::setCacheControl(0);
header("Content-Type: application/x-compressed");
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
// header("Content-Length: " .strlen($stream)); ?? why??
header('Content-Disposition: attachment; filename="'. $filename .'"');
header("Content-Transfer-Encoding: binary\n");
echo $stream;