]> git.mxchange.org Git - friendica.git/commitdiff
Issue 14451: Accept GZIP content encoding
authorMichael <heluecht@pirati.ca>
Fri, 27 Sep 2024 19:34:49 +0000 (19:34 +0000)
committerMichael <heluecht@pirati.ca>
Fri, 27 Sep 2024 19:34:49 +0000 (19:34 +0000)
src/Network/HTTPClient/Factory/HttpClient.php

index 5e3e9607cc220f20aeb922d9f61270e6c68706e0..6acae6de97d66c7fe54114199c8843b4d0b7eec2 100644 (file)
@@ -84,7 +84,9 @@ class HttpClient extends BaseFactory
                        // Without this setting it seems as if some webservers send compressed content
                        // This seems to confuse curl so that it shows this uncompressed.
                        /// @todo  We could possibly set this value to "gzip" or something similar
-                       RequestOptions::DECODE_CONTENT   => '',
+                       //RequestOptions::DECODE_CONTENT   => '',
+                       // Fixes Issue 14451 - [Bluesky] Unexpected GZIP response from getTimeline endpoint
+                       RequestOptions::DECODE_CONTENT   => true,
                        RequestOptions::FORCE_IP_RESOLVE => ($this->config->get('system', 'ipv4_resolve') ? 'v4' : null),
                        RequestOptions::CONNECT_TIMEOUT  => 10,
                        RequestOptions::TIMEOUT          => $this->config->get('system', 'curl_timeout', 60),