mirror of
https://github.com/GravitLauncher/Launcher
synced 2024-11-15 03:31:15 +03:00
[FIX] Поддержка пробелов в папках updates
This commit is contained in:
parent
b93c7d33eb
commit
b408767343
1 changed files with 2 additions and 1 deletions
|
@ -9,6 +9,7 @@
|
|||
import pro.gravit.launchserver.LaunchServer;
|
||||
import pro.gravit.launchserver.socket.Client;
|
||||
import pro.gravit.launchserver.websocket.json.SimpleResponse;
|
||||
import pro.gravit.utils.helper.IOHelper;
|
||||
|
||||
public class UpdateResponse extends SimpleResponse {
|
||||
public String dirName;
|
||||
|
@ -38,7 +39,7 @@ public void execute(ChannelHandlerContext ctx, Client client) {
|
|||
service.sendObject(ctx, new ErrorRequestEvent(String.format("Directory %s not found", dirName)));
|
||||
return;
|
||||
}
|
||||
String url = server.config.netty.downloadURL.replace("%dirname%", dirName);
|
||||
String url = server.config.netty.downloadURL.replace("%dirname%", IOHelper.urlEncode(dirName));
|
||||
boolean zip = false;
|
||||
if (server.config.netty.bindings.get(dirName) != null) {
|
||||
LaunchServer.NettyUpdatesBind bind = server.config.netty.bindings.get(dirName);
|
||||
|
|
Loading…
Reference in a new issue