This commit is contained in:
2021-08-04 15:45:37 +08:00
parent 9589a394eb
commit b2bfe5781e
+2 -1
View File
@@ -198,7 +198,8 @@ class Response extends HttpService
*/
public function setContent(mixed $content): Response|\Server\Constrict\Response
{
if ($content instanceof \Server\Constrict\Response) {
if ($content instanceof \Server\Constrict\Response
|| $content instanceof Response) {
return $content;
}
$this->endData = $content;