From bb0605182a3944418f74e1f5269916d4d0298190 Mon Sep 17 00:00:00 2001 From: bptato Date: Sat, 8 Jun 2024 20:44:45 +0200 Subject: config.toml: update headers * prepend Mozilla/5.0 to User-Agent; an unfortunate fact is that even the G-lettered search engine breaks without it, and I've seen sites that refuse to serve pages at all. * Add */* to Accept, in the hope that we'll get images more often. (The ideal solution is to set it to "*/*" when fetching images, but the API format doesn't let us do this yet; TODO.) --- res/config.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/res/config.toml b/res/config.toml index b1012a3c..4a295099 100644 --- a/res/config.toml +++ b/res/config.toml @@ -251,8 +251,8 @@ max-redirect = 10 prepend-scheme = "https://" prepend-https = true # deprecated, kept only for backwards-compatibility default-headers = { - User-Agent = "chawan", - Accept = "text/html,text/*;q=0.5", + User-Agent = "Mozilla/5.0 chawan", + Accept = "text/html, text/*;q=0.5, */*;q=0.4", Accept-Encoding = "gzip, deflate", Accept-Language = "en;q=1.0", Pragma = "no-cache", -- cgit 1.4.1-2-gfad0