From 924ecf879cf00f8e062d7f8537e48c1a038271ad Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Fri, 8 Jul 2011 12:57:11 -0700 Subject: [PATCH] Added __toString method to Response. --- system/response.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/system/response.php b/system/response.php index 2f90bdf0..c1734d2b 100644 --- a/system/response.php +++ b/system/response.php @@ -177,4 +177,12 @@ public function is_redirect() return $this->status == 301 or $this->status == 302; } + /** + * Get the parsed content of the Response. + */ + public function __toString() + { + return (string) $this->content; + } + } \ No newline at end of file