mirror of
https://github.com/signalapp/Signal-Android.git
synced 2025-12-24 21:15:48 +00:00
Fix potential charset crash on some devices.
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user