Skip to content

Commit 6a68734

Browse files
committed
Merge pull request laravel#1354 from BlaineSch/develop
Pass the response by reference so it can be overwritten in filters
2 parents f156287 + 81a2f5b commit 6a68734

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

laravel/routing/route.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ public function call()
129129
// sure we have a valid Response instance.
130130
$response = Response::prepare($response);
131131

132-
Filter::run($this->filters('after'), array($response));
132+
Filter::run($this->filters('after'), array(&$response));
133133

134134
return $response;
135135
}

0 commit comments

Comments
 (0)