This commit is contained in:
2023-10-17 17:01:18 +08:00
parent 3f638162e8
commit ec483b6c69
2 changed files with 3 additions and 5 deletions
+1 -1
View File
@@ -22,7 +22,7 @@ class MixedFormat implements IFormat
if (is_array($result)) {
return \response()->withContentType(ContentType::JSON)->withBody(new Stream(json_encode($result, JSON_UNESCAPED_UNICODE)));
} else {
return \response()->withBody(new Stream($result));
return \response()->withBody(new Stream((string)$result));
}
}