1
0
mirror of https://github.com/owncloud/android-library.git synced 2025-06-07 07:56:19 +00:00

Merge pull request #249 from owncloud/fix/login_fails_§

Fix "Login fails with "§" in password "
This commit is contained in:
David González Verdugo 2019-05-14 18:14:11 +02:00 committed by GitHub
commit 4660322eb0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -27,6 +27,7 @@ import com.owncloud.android.lib.common.OwnCloudClient;
import com.owncloud.android.lib.common.http.HttpClient;
import com.owncloud.android.lib.common.http.HttpConstants;
import okhttp3.Credentials;
import okhttp3.internal.Util;
public class OwnCloudBasicCredentials implements OwnCloudCredentials {
@ -52,7 +53,7 @@ public class OwnCloudBasicCredentials implements OwnCloudCredentials {
HttpClient.deleteHeaderForAllRequests(HttpConstants.COOKIE_HEADER);
HttpClient.addHeaderForAllRequests(HttpConstants.AUTHORIZATION_HEADER,
Credentials.basic(mUsername, mPassword));
Credentials.basic(mUsername, mPassword, Util.UTF_8));
}
@Override