From 1af0425db65eb2b503c14ef16083f6cd404eb6c1 Mon Sep 17 00:00:00 2001 From: dewanakl Date: Fri, 29 Dec 2023 14:47:08 +0700 Subject: [PATCH] fix: negate op --- app/Middleware/GzipMiddleware.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Middleware/GzipMiddleware.php b/app/Middleware/GzipMiddleware.php index 51e3630..9446dcd 100644 --- a/app/Middleware/GzipMiddleware.php +++ b/app/Middleware/GzipMiddleware.php @@ -28,7 +28,7 @@ public function handle(Request $request, Closure $next): Stream|Respond return $response; } - if (str_contains($request->server->get('HTTP_ACCEPT_ENCODING'), 'gzip')) { + if (!str_contains($request->server->get('HTTP_ACCEPT_ENCODING'), 'gzip')) { return $response; }