Browse Source

Merge pull request #1354 from BlaineSch/develop

Pass the response by reference so it can be overwritten in filters
Taylor Otwell 12 years ago
parent
commit
6a6873440e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      laravel/routing/route.php

+ 1 - 1
laravel/routing/route.php

@@ -129,7 +129,7 @@ class Route {
 		// sure we have a valid Response instance.
 		$response = Response::prepare($response);
 
-		Filter::run($this->filters('after'), array($response));
+		Filter::run($this->filters('after'), array(&$response));
 
 		return $response;
 	}