mirror of
https://github.com/crater-invoice/crater.git
synced 2025-10-28 12:11:08 -04:00
solve empty buffer clean issue
This commit is contained in:
@ -22,7 +22,7 @@ class DownloadReceiptController extends Controller
|
|||||||
if ($media) {
|
if ($media) {
|
||||||
$imagePath = $media->getPath();
|
$imagePath = $media->getPath();
|
||||||
$response = \Response::download($imagePath, $media->file_name);
|
$response = \Response::download($imagePath, $media->file_name);
|
||||||
ob_end_clean();
|
if (ob_get_contents()) ob_end_clean();
|
||||||
|
|
||||||
return $response;
|
return $response;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user