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 {