Skip to content

Commit 633fe98

Browse files
committed
fix(HttpServer): return "Ok" response for various endpoints
1 parent 91f58c8 commit 633fe98

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/mindustrytool/handlers/HttpServer.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public void init() {
5959
});
6060

6161
app.get("ok", (context) -> {
62-
context.result();
62+
context.result("Ok");
6363
});
6464

6565
app.get("hosting", (context) -> {
@@ -71,7 +71,7 @@ public void init() {
7171

7272
Call.sendMessage(message);
7373

74-
context.result();
74+
context.result("Ok");
7575
});
7676

7777
app.post("host", context -> {
@@ -134,7 +134,7 @@ public void init() {
134134
} catch (MapException e) {
135135
Log.err("@: @", e.map.plainName(), e.getMessage());
136136
}
137-
context.result();
137+
context.result("Ok");
138138
});
139139

140140
app.post("set-player", context -> {
@@ -162,7 +162,7 @@ public void init() {
162162
HudUtils.closeFollowDisplay(player, HudUtils.LOGIN_UI);
163163
MindustryToolPlugin.eventHandler.addPlayer(request, player);
164164
}
165-
context.result();
165+
context.result("Ok");
166166
});
167167

168168
app.get("players", context -> {
@@ -188,7 +188,7 @@ public void init() {
188188
}
189189
}
190190

191-
context.result();
191+
context.result("Ok");
192192
});
193193

194194
app.start(9999);

0 commit comments

Comments
 (0)