mirror of
https://github.com/friendica/friendica
synced 2024-12-22 22:00:16 +00:00
Issue 14451: Accept GZIP content encoding
This commit is contained in:
parent
bac9511475
commit
eb9d8f19d7
1 changed files with 3 additions and 1 deletions
|
@ -84,7 +84,9 @@ class HttpClient extends BaseFactory
|
||||||
// Without this setting it seems as if some webservers send compressed content
|
// Without this setting it seems as if some webservers send compressed content
|
||||||
// This seems to confuse curl so that it shows this uncompressed.
|
// This seems to confuse curl so that it shows this uncompressed.
|
||||||
/// @todo We could possibly set this value to "gzip" or something similar
|
/// @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::FORCE_IP_RESOLVE => ($this->config->get('system', 'ipv4_resolve') ? 'v4' : null),
|
||||||
RequestOptions::CONNECT_TIMEOUT => 10,
|
RequestOptions::CONNECT_TIMEOUT => 10,
|
||||||
RequestOptions::TIMEOUT => $this->config->get('system', 'curl_timeout', 60),
|
RequestOptions::TIMEOUT => $this->config->get('system', 'curl_timeout', 60),
|
||||||
|
|
Loading…
Reference in a new issue