1
0
Fork 0
mirror of https://github.com/benbusby/farside.git synced 2025-06-08 02:16:36 +00:00

Set headers for every HTTPoison request

This serves as a workaround for bot blocking via filtron.
This commit is contained in:
Ben Busby 2021-11-24 16:10:00 -07:00
parent 1216854196
commit 4a824e449b
No known key found for this signature in database
GPG key ID: 339B7B7EB5333D14
2 changed files with 9 additions and 2 deletions

View file

@ -8,4 +8,10 @@ config :farside,
fallback_suffix: "-fallback",
previous_suffix: "-previous",
services_json: "services.json",
index: "index.eex"
index: "index.eex",
headers: [
{"User-Agent", "Mozilla/5.0 (Linux x86_64; rv:94.0) Gecko/20100101 Firefox/94.0"},
{"Accept", "text/html"},
{"Accept-Language", "en-US,en;q=0.5"},
{"Accept-Encoding", "gzip, deflate, br"}
]