module/doc: End output buffering before serving module images
refs #3223
This commit is contained in:
parent
226cc2c810
commit
94ea42f30d
|
@ -176,7 +176,11 @@ class ModuleController extends DocController
|
|||
} else {
|
||||
$finfo = new finfo();
|
||||
$this->getResponse()
|
||||
->setHeader('Content-Type', $finfo->file($imagePath, FILEINFO_MIME_TYPE));
|
||||
->setHeader('Content-Type', $finfo->file($imagePath, FILEINFO_MIME_TYPE))
|
||||
->setHeader('Content-Length', $imageInfo->getSize())
|
||||
->sendHeaders();
|
||||
|
||||
ob_end_clean();
|
||||
readfile($imagePath);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue