Use UTF-8 in digest auth in WebDAV to allow special characters in pw

Fixes #443
This commit is contained in:
Julian Raufelder 2022-05-18 01:05:55 +02:00
parent 3fa41abf54
commit 6bed5e8d43
No known key found for this signature in database
GPG Key ID: 17EE71F6634E381D

View File

@ -109,7 +109,7 @@ internal class WebDavCompatibleHttpClient(cloud: WebDavCloud, context: Context)
private fun httpAuthenticator(context: Context, webDavCloud: WebDavCloud, authCache: Map<String, CachingAuthenticator>): Authenticator {
val credentials = Credentials(webDavCloud.username(), decryptPassword(context, webDavCloud.password()))
val basicAuthenticator = BasicAuthenticator(credentials, StandardCharsets.UTF_8)
val digestAuthenticator = DigestAuthenticator(credentials)
val digestAuthenticator = DigestAuthenticator(credentials, StandardCharsets.UTF_8)
val authenticator = DispatchingAuthenticator.Builder() //
.with("digest", digestAuthenticator) //
.with("basic", basicAuthenticator) //