Fix json escape in specific old case & remove avatar
This commit is contained in:
parent
d0bdc316bf
commit
88d4bfb8ee
1 changed files with 3 additions and 3 deletions
|
@ -50,10 +50,10 @@ public class PlayerDetails implements Response {
|
|||
playerJSON.set("tries", player.getTotalTries());
|
||||
if (player.getBadges() != null)
|
||||
playerJSON.set("badges", player.getJsonBadges());
|
||||
if (player.getAvatar() != null)
|
||||
playerJSON.set("avatar", Base64.getEncoder().encodeToString(player.getAvatar()));
|
||||
// if (player.getAvatar() != null)
|
||||
// playerJSON.set("avatar", Base64.getEncoder().encodeToString(player.getAvatar()));
|
||||
context.response(200);
|
||||
writer.write(playerJSON.toString().replace("\\", ""));
|
||||
writer.write(playerJSON.toString());
|
||||
} else {
|
||||
context.response(400);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue