fix howlongtobeat POST imitator: add Referer header

This commit is contained in:
Wouter Groeneveld 2022-05-31 08:45:35 +02:00
parent 14de095edc
commit 1eef5a6f56
1 changed files with 4 additions and 1 deletions

View File

@ -39,7 +39,10 @@ class HLTBClientImpl(val context: Context) : HLTBClient {
}
override fun getHeaders(): MutableMap<String, String> {
return hashMapOf("User-Agent" to "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:90.0) Gecko/20100101 Firefox/90.0")
return hashMapOf(
"User-Agent" to "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:90.0) Gecko/20100101 Firefox/90.0",
"Referer" to "https://howlongtobeat.com/"
)
}
}