Scantrad Remove referer header causing a 403 HTTP error (#5851)

This commit is contained in:
Victorien Berlot 2021-02-16 12:38:14 +01:00 committed by GitHub
parent efed4135dc
commit 04253a8159
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 2 deletions

View File

@ -5,7 +5,7 @@ ext {
extName = 'Scantrad'
pkgNameSuffix = 'fr.scantrad'
extClass = '.Scantrad'
extVersionCode = 12
extVersionCode = 13
libVersion = '1.2'
}

View File

@ -47,7 +47,6 @@ class Scantrad : ParsedHttpSource() {
protected open val userAgentRandomizer3 = "${Random.nextInt(100,999).absoluteValue}"
override fun headersBuilder() = Headers.Builder().apply {
add("Referer", baseUrl)
add(
"User-Agent",
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) " +