diff --git a/src/CloudFlareMiddleware.php b/src/CloudFlareMiddleware.php index 1b0908b..6e8de78 100644 --- a/src/CloudFlareMiddleware.php +++ b/src/CloudFlareMiddleware.php @@ -115,8 +115,8 @@ class CloudFlareMiddleware implements HttpKernelInterface { /** * {@inheritdoc} */ - public function handle(Request $request, $type = self::MAIN_REQUEST, bool $catch = TRUE): Response { - if ($type !== self::MAIN_REQUEST) { + public function handle(Request $request, $type = self::MASTER_REQUEST, $catch = TRUE): Response { + if ($type !== self::MASTER_REQUEST) { return $this->httpKernel->handle($request, $type, $catch); }