We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cdce78c commit 10a7f40Copy full SHA for 10a7f40
src/mindustrytool/handlers/HttpServer.java
@@ -180,9 +180,9 @@ public void init() {
180
});
181
182
app.post("command", context -> {
183
- String commands = context.body();
184
- if (commands != null && !commands.isBlank()) {
185
- for (var command : commands.split("\n")) {
+ String[] commands = context.bodyAsClass(String[].class);
+ if (commands != null) {
+ for (var command : commands) {
186
ServerCommandHandler.getHandler().handleMessage(command);
187
}
188
0 commit comments