Skip to content

Commit

Permalink
Merge pull request #4 from GrahamCampbell/patch-4
Browse files Browse the repository at this point in the history
Responses may not be illuminate responses
  • Loading branch information
JacobBennett authored Jul 31, 2016
2 parents 893a77d + d3a4ad3 commit 41c4f0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Middleware/AddHttp2ServerPush.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public function handle(Request $request, Closure $next)
{
$response = $next($request);

if ($response->isRedirection()) {
if ($response->isRedirection() || !$response instanceof Response) {
return $response;
}

Expand Down

0 comments on commit 41c4f0d

Please sign in to comment.