- 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

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