Fix potential charset crash on some devices.
This commit is contained in:
parent
763e891dfd
commit
dcd0d433b0
1 changed files with 1 additions and 1 deletions
|
@ -1095,7 +1095,7 @@ public class PushServiceSocket {
|
|||
*/
|
||||
public @NonNull ACI getAciByUsernameHash(String usernameHash) throws IOException {
|
||||
String response = makeServiceRequestWithoutAuthentication(
|
||||
String.format(GET_USERNAME_PATH, URLEncoder.encode(usernameHash, StandardCharsets.UTF_8.toString())),
|
||||
String.format(GET_USERNAME_PATH, URLEncoder.encode(usernameHash, StandardCharsets.UTF_8.name())),
|
||||
"GET",
|
||||
null,
|
||||
NO_HEADERS,
|
||||
|
|
Loading…
Add table
Reference in a new issue