Skip to content

Commit

Permalink
Fixed wrong contenttype in mojang class
Browse files Browse the repository at this point in the history
  • Loading branch information
Lauriichan committed Apr 27, 2021
1 parent 83b5747 commit 7effbf8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>net.sourcewriters.minecraft</groupId>
<artifactId>vcompat</artifactId>
<version>2.1.7</version>
<version>2.1.8</version>
<name>vCompat</name>
<distributionManagement>
<repository>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 7effbf8

Please sign in to comment.