1
0
mirror of https://github.com/RSS-Bridge/rss-bridge.git synced 2025-08-10 10:34:15 +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

@@ -53,7 +53,10 @@ timeout = 5
retries = 1
; Curl user agent
useragent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Firefox/102.0"
; This is already set by curl-impersonate, which comes included as default
; in RSS-Bridge docker container. Use only if you know what you're doing.
; For reference, see https://github.com/lexiforest/curl-impersonate/tree/main/docs
;useragent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Firefox/102.0"
; Max http response size in MB
max_filesize = 20