From 492a542ff996669ef3b5321bec87f4fa2050383a Mon Sep 17 00:00:00 2001 From: Bas van Dinther Date: Thu, 12 Oct 2023 15:25:50 +0200 Subject: [PATCH] wip --- src/Seo.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Seo.php b/src/Seo.php index 74768af..a388ef3 100755 --- a/src/Seo.php +++ b/src/Seo.php @@ -62,10 +62,13 @@ private function visitPage(string $url): object $headers = (array) config('seo.http.headers', []); $options = (array) config('seo.http.options', []); + $options = array_merge($options, [ + 'decode_content' => false, + ]); + $response = $this->http::withOptions($options) ->withHeaders([ 'Accept-Encoding' => 'gzip, deflate', - 'decode_content' => false, ...$headers, ]);