Skip to content

Commit 67e9e7e

Browse files
author
Christian Blanquera
committed
partial fix (pun intended) to invalid json encodings
1 parent 5165e97 commit 67e9e7e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Http/Response/ContentTrait.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public function hasContent(): bool
5050
public function setContent($content)
5151
{
5252
if (!is_scalar($content)) {
53-
$content = json_encode($content, JSON_PRETTY_PRINT);
53+
$content = json_encode($content, JSON_PARTIAL_OUTPUT_ON_ERROR|JSON_PRETTY_PRINT);
5454
}
5555

5656
if (is_bool($content)) {

0 commit comments

Comments
 (0)