diff --git a/src/Illuminate/Http/Response.php b/src/Illuminate/Http/Response.php index d0dcf9645f04..ce92883c9c18 100644 --- a/src/Illuminate/Http/Response.php +++ b/src/Illuminate/Http/Response.php @@ -53,6 +53,13 @@ public function setContent($content) { $content = $content->render(); } + + // If this content is an array then we will render as human-readable and + // apply pre-formatting. + elseif (is_array($content)) + { + $content = '
'.print_r($content, true).''; + } return parent::setContent($content); } @@ -67,4 +74,4 @@ public function getOriginalContent() return $this->original; } -} \ No newline at end of file +}