diff --git a/src/Middleware/AddHttp2ServerPush.php b/src/Middleware/AddHttp2ServerPush.php index b0882e7..167d1c6 100644 --- a/src/Middleware/AddHttp2ServerPush.php +++ b/src/Middleware/AddHttp2ServerPush.php @@ -29,7 +29,7 @@ public function handle(Request $request, Closure $next) { $response = $next($request); - if ($response->isRedirection() || !$response instanceof Response) { + if ($response->isRedirection() || !$response instanceof Response || $request->isJson()) { return $response; }