mirror of
https://github.com/friendica/friendica
synced 2024-11-17 20:23:40 +00:00
Merge pull request #14452 from annando/issue-14451
Issue 14451: Accept GZIP content encoding
This commit is contained in:
commit
7fa3e361dc
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
|
||||
// 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),
|
||||
|
|
Loading…
Reference in a new issue