This commit is contained in:
2021-04-27 11:38:41 +08:00
parent 7d804f3a25
commit ab81ffd34f
-3
View File
@@ -228,9 +228,6 @@ class Response extends HttpService
if (!swoole()->exist($response->fd)) {
return;
}
if (is_array($sendData)) {
$sendData = Json::encode($sendData);
}
$response->end($this->setHeaders($response, $status)
->setResponseContent($sendData));
}