mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-02-06 15:14:58 +00:00
fix setting of header
This commit is contained in:
parent
0b054d0fb1
commit
ff82caf818
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue
Block a user