LANraragi: Base64 NO_WRAP (#18649)
This commit is contained in:
parent
dcd10c63f8
commit
32e3c05c0f
|
@ -6,7 +6,7 @@ ext {
|
||||||
extName = 'LANraragi'
|
extName = 'LANraragi'
|
||||||
pkgNameSuffix = 'all.lanraragi'
|
pkgNameSuffix = 'all.lanraragi'
|
||||||
extClass = '.LANraragiFactory'
|
extClass = '.LANraragiFactory'
|
||||||
extVersionCode = 14
|
extVersionCode = 15
|
||||||
}
|
}
|
||||||
|
|
||||||
apply from: "$rootDir/common.gradle"
|
apply from: "$rootDir/common.gradle"
|
||||||
|
|
|
@ -240,7 +240,7 @@ open class LANraragi(private val suffix: String = "") : ConfigurableSource, Unme
|
||||||
|
|
||||||
override fun headersBuilder() = Headers.Builder().apply {
|
override fun headersBuilder() = Headers.Builder().apply {
|
||||||
if (apiKey.isNotEmpty()) {
|
if (apiKey.isNotEmpty()) {
|
||||||
val apiKey64 = Base64.encodeToString(apiKey.toByteArray(), Base64.DEFAULT).trim()
|
val apiKey64 = Base64.encodeToString(apiKey.toByteArray(), Base64.NO_WRAP)
|
||||||
add("Authorization", "Bearer $apiKey64")
|
add("Authorization", "Bearer $apiKey64")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue