Skip to content

Commit c4efac5

Browse files
authored
Merge pull request #7 from ninjaparade/patch-1
Check for JSON response
2 parents 41c4f0d + ba295d2 commit c4efac5

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() || !$response instanceof Response) {
32+
if ($response->isRedirection() || !$response instanceof Response || $request->isJson()) {
3333
return $response;
3434
}
3535

0 commit comments

Comments
 (0)