From 2e0a56dd278589b451c4c9bffeb0583be3f401d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Tue, 10 Aug 2021 16:51:53 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Server/Constrict/ResponseEmitter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Server/Constrict/ResponseEmitter.php b/Server/Constrict/ResponseEmitter.php index a876196d..890d2e7c 100644 --- a/Server/Constrict/ResponseEmitter.php +++ b/Server/Constrict/ResponseEmitter.php @@ -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;