Add header accept-language (#5887)
This commit is contained in:
parent
cf62cb5ef1
commit
2ad36b1f38
|
@ -5,7 +5,7 @@ ext {
|
|||
extName = 'Scantrad'
|
||||
pkgNameSuffix = 'fr.scantrad'
|
||||
extClass = '.Scantrad'
|
||||
extVersionCode = 14
|
||||
extVersionCode = 15
|
||||
libVersion = '1.2'
|
||||
}
|
||||
|
||||
|
|
|
@ -44,6 +44,7 @@ class Scantrad : ParsedHttpSource() {
|
|||
|
||||
override fun headersBuilder(): Headers.Builder = Headers.Builder()
|
||||
.add("User-Agent", generateRandomUserAgent(Random.nextInt(10, 30).absoluteValue))
|
||||
.add("Accept-Language", "fr")
|
||||
|
||||
// Popular
|
||||
|
||||
|
|
Loading…
Reference in New Issue