From: Philipp Date: Tue, 12 Jul 2022 18:09:18 +0000 (+0200) Subject: Fix HTTP Client redirect Bug X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=8e547510a0ccd4f7b44e0dd335ae9e950b5d8ba1;p=friendica.git Fix HTTP Client redirect Bug --- diff --git a/src/Network/HTTPClient/Factory/HttpClient.php b/src/Network/HTTPClient/Factory/HttpClient.php index b3fd76936e..29ef3c09eb 100644 --- a/src/Network/HTTPClient/Factory/HttpClient.php +++ b/src/Network/HTTPClient/Factory/HttpClient.php @@ -94,11 +94,11 @@ class HttpClient extends BaseFactory $guzzle = new GuzzleHttp\Client([ RequestOptions::ALLOW_REDIRECTS => [ - 'max' => 8, - 'on_redirect' => $onRedirect, - 'track_redirect' => true, - 'strict' => true, - 'referer' => true, + 'max' => 8, + 'on_redirect' => $onRedirect, + 'track_redirects' => true, + 'strict' => true, + 'referer' => true, ], RequestOptions::HTTP_ERRORS => false, // Without this setting it seems as if some webservers send compressed content