From 6b84387bdb82190c725f163d8d1736d25360b723 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Tue, 9 Mar 2021 17:20:50 +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 --- HttpServer/Http/Response.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/HttpServer/Http/Response.php b/HttpServer/Http/Response.php index 46e879e6..861e40bb 100644 --- a/HttpServer/Http/Response.php +++ b/HttpServer/Http/Response.php @@ -177,6 +177,9 @@ class Response extends HttpService */ private function parseData($context): mixed { + if ($context === null) { + return ''; + } if (isset($this->_format_maps[$this->format])) { $config['class'] = $this->_format_maps[$this->format]; } else {