fossar / selfoss

multipurpose rss reader, live stream, mashup, aggregation web application
https://selfoss.aditu.de
GNU General Public License v3.0
2.35k stars 343 forks source link

WebClient: Send Accept-Encoding #1482

Closed jtojnar closed 2 months ago

jtojnar commented 2 months ago

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).

Let’s force Guzzle to let curl send Accept-Encoding header reflecting which compression methods it supports: https://github.com/guzzle/guzzle/pull/3215

Fixes: https://github.com/fossar/selfoss/issues/1481

netlify[bot] commented 2 months ago

Deploy Preview for selfoss canceled.

Name Link
Latest commit 24292747386256e1b852659fe2af6f5fef60d24a
Latest deploy log https://app.netlify.com/sites/selfoss/deploys/661ad0729114a50008e6f847