solve empty buffer clean issue

This commit is contained in:
jayvirsinh_gohil
2021-08-16 18:29:41 +05:30
parent 05110526a7
commit 010c7b02ed

View File

@ -22,7 +22,7 @@ class DownloadReceiptController extends Controller
if ($media) {
$imagePath = $media->getPath();
$response = \Response::download($imagePath, $media->file_name);
ob_end_clean();
if (ob_get_contents()) ob_end_clean();
return $response;
}