This commit is contained in:
2021-04-23 17:44:50 +08:00
parent f5609ecd99
commit 9b0f919ba9
+3
View File
@@ -223,6 +223,9 @@ class Response extends HttpService
*/
private function sendData($sendData, $status): void
{
if (!$this->response->isWritable()) {
return;
}
$this->setHeaders($status);
if (empty($sendData)) {
$this->response->end('');