]> git.mxchange.org Git - friendica.git/commitdiff
Fix HTTP Client redirect Bug
authorPhilipp <admin@philipp.info>
Tue, 12 Jul 2022 18:09:18 +0000 (20:09 +0200)
committerPhilipp <admin@philipp.info>
Tue, 12 Jul 2022 18:11:53 +0000 (20:11 +0200)
src/Network/HTTPClient/Factory/HttpClient.php

index b3fd76936eb136a22b1fb3eba76ae654f06f7298..29ef3c09eb9e84a60d6954e67df88f05dae6338e 100644 (file)
@@ -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