From 3a77d65c44d269a6c86b03ec25599e593f86adfc Mon Sep 17 00:00:00 2001 From: helmut Date: Thu, 17 Jan 2013 11:54:00 +1100 Subject: [PATCH] Update src/Illuminate/Http/Response.php --- src/Illuminate/Http/Response.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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 +}