fix setting of header

This commit is contained in:
Uwe Steinmann 2017-12-20 13:42:15 +01:00
parent 0b054d0fb1
commit ff82caf818

View File

@ -632,7 +632,7 @@ function getDocumentContent($id) { /* {{{ */
$filename = $document->getName().$lc->getFileType();
$app->response()->header('Content-Type', $lc->getMimeType());
$app->response()->header("Content-Disposition: filename=\"" . $filename . "\"");
$app->response()->header("Content-Disposition", "filename=\"" . $filename . "\"");
$app->response()->header("Content-Length", filesize($dms->contentDir . $lc->getPath()));
$app->response()->header("Expires", "0");
$app->response()->header("Cache-Control", "no-cache, must-revalidate");