This commit is contained in:
2021-03-09 17:20:50 +08:00
parent 5c3fd34dc0
commit 6b84387bdb
+3
View File
@@ -177,6 +177,9 @@ class Response extends HttpService
*/ */
private function parseData($context): mixed private function parseData($context): mixed
{ {
if ($context === null) {
return '';
}
if (isset($this->_format_maps[$this->format])) { if (isset($this->_format_maps[$this->format])) {
$config['class'] = $this->_format_maps[$this->format]; $config['class'] = $this->_format_maps[$this->format];
} else { } else {