This commit is contained in:
2021-08-10 16:51:53 +08:00
parent 224ae55b18
commit 2e0a56dd27
+1 -1
View File
@@ -47,7 +47,7 @@ class ResponseEmitter
// $response->header('Content-Type', 'application/download');
$response->header('Content-Disposition', 'attachment;filename=' . end($explode));
$response->header('Content-Transfer-Encoding', 'binary');
$response->setStatusCode(200);
if ($content['isChunk'] === false) {
$response->sendfile($content['path']);
return;