diff options
author | Matthieu De Beule <matthieu.de@beule.be> | 2019-03-08 17:46:30 +0100 |
---|---|---|
committer | Matthieu De Beule <matthieu.de@beule.be> | 2019-03-08 17:46:30 +0100 |
commit | e25659a1284cba41fbdc3972506db27a3cb218bf (patch) | |
tree | 5271d56fcdb886afdd2c8ab5d9cc80de87918f0b | |
parent | 26d7e61f4d62a5746424e210a63a2defd335967a (diff) | |
download | AntennaPod-e25659a1284cba41fbdc3972506db27a3cb218bf.zip |
Fix #3054: use UTF-8 to encode password and username for gpodder auth
-rw-r--r-- | core/src/main/java/de/danoeh/antennapod/core/gpoddernet/GpodnetService.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/src/main/java/de/danoeh/antennapod/core/gpoddernet/GpodnetService.java b/core/src/main/java/de/danoeh/antennapod/core/gpoddernet/GpodnetService.java index 3af5e9080..2588cfdee 100644 --- a/core/src/main/java/de/danoeh/antennapod/core/gpoddernet/GpodnetService.java +++ b/core/src/main/java/de/danoeh/antennapod/core/gpoddernet/GpodnetService.java @@ -14,6 +14,7 @@ import java.net.MalformedURLException; import java.net.URI; import java.net.URISyntaxException; import java.net.URL; +import java.nio.charset.Charset; import java.util.ArrayList; import java.util.Collection; import java.util.LinkedList; @@ -587,7 +588,7 @@ public class GpodnetService { String result = null; ResponseBody body = null; try { - String credential = Credentials.basic(username, password); + String credential = Credentials.basic(username, password, Charset.forName("UTF-8")); Request authRequest = request.newBuilder().header("Authorization", credential).build(); Response response = httpClient.newCall(authRequest).execute(); checkStatusCode(response); |