about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2024-06-08 20:44:45 +0200
committerbptato <nincsnevem662@gmail.com>2024-06-08 20:48:45 +0200
commitbb0605182a3944418f74e1f5269916d4d0298190 (patch)
treebf7b63b366c578d59f026cd98c533ff158ea4239
parent83245df67c9c5482fdb5be5d9ac6fdad71bebaac (diff)
downloadchawan-bb0605182a3944418f74e1f5269916d4d0298190.tar.gz
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.)
-rw-r--r--res/config.toml4
1 files 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",