Yimmmh: Change User-Agent (#11400)
This commit is contained in:
parent
f146ecdd33
commit
05c00f1760
|
@ -5,7 +5,7 @@ ext {
|
|||
extName = 'Yimmh'
|
||||
pkgNameSuffix = 'zh.yimmh'
|
||||
extClass = '.Yimmh'
|
||||
extVersionCode = 4
|
||||
extVersionCode = 5
|
||||
}
|
||||
|
||||
apply from: "$rootDir/common.gradle"
|
||||
|
|
|
@ -29,7 +29,7 @@ class Yimmh : ParsedHttpSource() {
|
|||
override val supportsLatest: Boolean = true
|
||||
override val baseUrl: String = "https://m.yimmh.com"
|
||||
override fun headersBuilder() = Headers.Builder()
|
||||
.add("User-Agent", "Mozilla/5.0 (Android 11; Mobile; rv:83.0) Gecko/83.0 Firefox/83.0")
|
||||
.add("User-Agent", System.getProperty("http.agent")!!)
|
||||
override val client: OkHttpClient = getUnsafeOkHttpClient()
|
||||
|
||||
// Trusted all certificates
|
||||
|
|
Loading…
Reference in New Issue