Skip to content

Commit be2d58e

Browse files
committed
fix(ApiGateway): change Content-Type header from text/plain to application/json
1 parent c673649 commit be2d58e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/mindustrytool/handlers/ApiGateway.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ public void onPlayerLeave(PlayerMessageRequest request) {
8787

8888
public String host(String targetServerId) {
8989
var request = setHeaders(HttpRequest.newBuilder(path("host")))//
90-
.header("Content-Type", "text/plain")//
90+
.header("Content-Type", "application/json")//
9191
.POST(HttpRequest.BodyPublishers.ofString(targetServerId))//
9292
.build();
9393

0 commit comments

Comments
 (0)