diff --git a/LaunchServer/src/main/java/pro/gravit/launchserver/auth/core/JsonCoreProvider.java b/LaunchServer/src/main/java/pro/gravit/launchserver/auth/core/JsonCoreProvider.java index 74b8ffc3..5cb8e255 100644 --- a/LaunchServer/src/main/java/pro/gravit/launchserver/auth/core/JsonCoreProvider.java +++ b/LaunchServer/src/main/java/pro/gravit/launchserver/auth/core/JsonCoreProvider.java @@ -58,7 +58,7 @@ public static R jsonRequest(T request, String url, String bearerToken, Cl .header("Accept", "application/json") .timeout(Duration.ofMillis(10000)); if (bearerToken != null) { - request1.header("Authentication", "Bearer ".concat(bearerToken)); + request1.header("Authorization", "Bearer ".concat(bearerToken)); } HttpResponse response = client.send(request1.build(), HttpResponse.BodyHandlers.ofInputStream()); int statusCode = response.statusCode(); diff --git a/LaunchServer/src/main/java/pro/gravit/launchserver/socket/Client.java b/LaunchServer/src/main/java/pro/gravit/launchserver/socket/Client.java index 87b51c43..36c3d8eb 100644 --- a/LaunchServer/src/main/java/pro/gravit/launchserver/socket/Client.java +++ b/LaunchServer/src/main/java/pro/gravit/launchserver/socket/Client.java @@ -81,7 +81,7 @@ public String getSerializableProperty(String name) { public void setSerializableProperty(String name, String value) { if (serializableProperties == null) serializableProperties = new HashMap<>(); - properties.put(name, value); + serializableProperties.put(name, value); } public pro.gravit.launchserver.auth.core.User getUser() { diff --git a/LaunchServer/src/main/java/pro/gravit/launchserver/socket/handlers/NettyWebAPIHandler.java b/LaunchServer/src/main/java/pro/gravit/launchserver/socket/handlers/NettyWebAPIHandler.java index 33f49a64..b9603131 100644 --- a/LaunchServer/src/main/java/pro/gravit/launchserver/socket/handlers/NettyWebAPIHandler.java +++ b/LaunchServer/src/main/java/pro/gravit/launchserver/socket/handlers/NettyWebAPIHandler.java @@ -12,7 +12,7 @@ import pro.gravit.utils.helper.IOHelper; import java.net.URLDecoder; -import java.nio.charset.Charset; +import java.nio.charset.StandardCharsets; import java.util.Comparator; import java.util.HashMap; import java.util.Map; @@ -86,7 +86,7 @@ default Map getParamsFromUri(String uri) { String[] result = sub.split("&"); Map map = new HashMap<>(); for (String s : result) { - String c = URLDecoder.decode(s, Charset.defaultCharset()); + String c = URLDecoder.decode(s, StandardCharsets.UTF_8); int index = c.indexOf("="); if (index <= 0) { continue; diff --git a/LauncherCore/src/main/java/pro/gravit/utils/Version.java b/LauncherCore/src/main/java/pro/gravit/utils/Version.java index 72cdaab5..42a215f8 100644 --- a/LauncherCore/src/main/java/pro/gravit/utils/Version.java +++ b/LauncherCore/src/main/java/pro/gravit/utils/Version.java @@ -6,7 +6,7 @@ public final class Version implements Comparable { public static final int MAJOR = 5; public static final int MINOR = 2; - public static final int PATCH = 0; + public static final int PATCH = 1; public static final int BUILD = 1; public static final Version.Type RELEASE = Type.STABLE; public final int major; diff --git a/build.gradle b/build.gradle index 13f094e7..ac0b4769 100644 --- a/build.gradle +++ b/build.gradle @@ -5,7 +5,7 @@ id 'org.openjfx.javafxplugin' version '0.0.8' apply false } group = 'pro.gravit.launcher' -version = '5.2.0' +version = '5.2.1' apply from: 'props.gradle' diff --git a/modules b/modules index 9407d4bc..84a55992 160000 --- a/modules +++ b/modules @@ -1 +1 @@ -Subproject commit 9407d4bcd90f282969433d29b7598372f56917b9 +Subproject commit 84a5599243bddf0f7a8081cc7f5672e9140893bd