Skip to content

Commit 41c4f0d

Browse files
authored
Merge pull request #4 from GrahamCampbell/patch-4
Responses may not be illuminate responses
2 parents 893a77d + d3a4ad3 commit 41c4f0d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Middleware/AddHttp2ServerPush.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public function handle(Request $request, Closure $next)
2929
{
3030
$response = $next($request);
3131

32-
if ($response->isRedirection()) {
32+
if ($response->isRedirection() || !$response instanceof Response) {
3333
return $response;
3434
}
3535

0 commit comments

Comments
 (0)