LANraragi: Base64 NO_WRAP (#18649)

This commit is contained in:
RePod 2023-10-21 12:38:58 -04:00 committed by GitHub
parent dcd10c63f8
commit 32e3c05c0f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -6,7 +6,7 @@ ext {
extName = 'LANraragi'
pkgNameSuffix = 'all.lanraragi'
extClass = '.LANraragiFactory'
extVersionCode = 14
extVersionCode = 15
}
apply from: "$rootDir/common.gradle"

View File

@ -240,7 +240,7 @@ open class LANraragi(private val suffix: String = "") : ConfigurableSource, Unme
override fun headersBuilder() = Headers.Builder().apply {
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")
}
}