1
0
mirror of https://github.com/RSS-Bridge/rss-bridge.git synced 2025-08-07 00:56:34 +02:00

Overhaul the usage of libcurl-impersonate (#4535)

libcurl-impersonate was not being used properly, as the code was
overriding the headers set by it to prevent detection.

- update the libcurl-impersonate to an actively managed lexiforest
  fork
- impersonate Chrome 131
- move the defaultHttpHeaders to http.php, where it belongs
- only set defaultHttpHeaders if curl-impersonate is not detected
- make useragent ini setting optional and disabled by default
- add necessary documentation updates
This commit is contained in:
Dawid Wróbel
2025-05-17 20:18:36 +02:00
committed by GitHub
parent 0f77d3ae0a
commit b7c04f8587
6 changed files with 45 additions and 30 deletions

View File

@@ -119,7 +119,9 @@ Default network timeout.
### useragent
Default user agent.
Overrides the user agent value. Note that the default value, together with a set of other detection-preventing options is set
automatically by the [libcurl-impersonate](https://github.com/lexiforest/curl-impersonate), which is used by the default Docker container distributed together with RSS-Bridge. Use only if you know what you're doing, otherwise you may stop libcurl-impersonate
from doing its job impersonating real browser.
## Authentication