- fixed a bug where json was not appended into dimp

This commit is contained in:
Dave M. 2023-11-08 06:53:49 -05:00
parent db3c7eb411
commit 10dac37e43
1 changed files with 2 additions and 1 deletions

View File

@ -54,7 +54,8 @@ namespace Dump {
if (isset($dump)) {
$stream->write(json_encode(array_merge(["_dump" => $dump ?? []], json_decode($body->getContents() ?? "{}", true)), JsonResponse::DEFAULT_JSON_FLAGS));
}
$stream->append_resource($body->detach());
break;
case $response instanceof HtmlResponse: