From ba295d23e307fa5066ae36b6ad0191357935c0df Mon Sep 17 00:00:00 2001 From: Ninja Date: Wed, 17 Aug 2016 15:34:27 -0700 Subject: [PATCH] Check for JSON response if the response is json, JUS DON TOUCHE --- src/Middleware/AddHttp2ServerPush.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }