Guzzle does not send Accept-Encoding header by default. That is equivalent to sending Accept-Encoding: *. Most servers will probably return an uncompressed body in response to that, which can be considered wasteful, and can trigger crawler detection systems. Others might even opt to use a compression method that is not supported by the system (e.g. when libcurl is not compiled with brotli support).
Guzzle does not send
Accept-Encoding
header by default. That is equivalent to sendingAccept-Encoding: *
. Most servers will probably return an uncompressed body in response to that, which can be considered wasteful, and can trigger crawler detection systems. Others might even opt to use a compression method that is not supported by the system (e.g. when libcurl is not compiled with brotli support).Let’s force Guzzle to let curl send
Accept-Encoding
header reflecting which compression methods it supports: https://github.com/guzzle/guzzle/pull/3215Fixes: https://github.com/fossar/selfoss/issues/1481