From 7effbf8dff7bc08770cc1e918e3c6a8f8e42802a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Laura=20Endre=C3=9F?= Date: Tue, 27 Apr 2021 14:37:48 +0200 Subject: [PATCH] Fixed wrong contenttype in mojang class --- pom.xml | 2 +- .../java/net/sourcewriters/minecraft/vcompat/skin/Mojang.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index 088d381..112d38c 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ 4.0.0 net.sourcewriters.minecraft vcompat - 2.1.7 + 2.1.8 vCompat diff --git a/src/main/java/net/sourcewriters/minecraft/vcompat/skin/Mojang.java b/src/main/java/net/sourcewriters/minecraft/vcompat/skin/Mojang.java index 0818411..a3ea2bc 100644 --- a/src/main/java/net/sourcewriters/minecraft/vcompat/skin/Mojang.java +++ b/src/main/java/net/sourcewriters/minecraft/vcompat/skin/Mojang.java @@ -173,7 +173,7 @@ public Skin getSkinFrom(URL url, SkinModel model, int timeout) { EasyRequest request = new EasyRequest(RequestType.POST); request.header("Authorization", "Bearer " + profile.getAuthToken()); request.data("url", url.toString()).data("model", model.toString()); - EasyResponse response = request.run(String.format(URL_SKIN_UPLOAD, profile.getUniqueId())); + EasyResponse response = request.run(String.format(URL_SKIN_UPLOAD, profile.getUniqueId()), EasyUrlEncodedContent.URL_ENCODED); if (response.getCode() != ResponseCode.NO_CONTENT) { if (debug) { logger.log(LogTypeId.DEBUG, "Code: " + response.getCode() + " / Length: " + response.getData().length);