改名
This commit is contained in:
@@ -223,6 +223,9 @@ class Response extends HttpService
|
|||||||
*/
|
*/
|
||||||
private function sendData($sendData, $status): void
|
private function sendData($sendData, $status): void
|
||||||
{
|
{
|
||||||
|
if (!$this->response->isWritable()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
$this->setHeaders($status);
|
$this->setHeaders($status);
|
||||||
if (empty($sendData)) {
|
if (empty($sendData)) {
|
||||||
$this->response->end('');
|
$this->response->end('');
|
||||||
|
|||||||
Reference in New Issue
Block a user