This commit is contained in:
2023-12-21 12:28:29 +08:00
parent 18f8ae2162
commit ba4d790c2c
+1 -1
View File
@@ -30,7 +30,7 @@ class MixedFormat implements IFormat
return $this->response->withBody(new Stream('[object]'));
}
if (is_array($result)) {
return $this->response->withContentType(ContentType::JSON)->withBody(new Stream(json_encode($result, JSON_UNESCAPED_UNICODE)));
return $this->response->withBody(new Stream(json_encode($result, JSON_UNESCAPED_UNICODE)));
} else {
return $this->response->withBody(new Stream((string)$result));
}