Use the correct content-type header (#2527)

This commit is contained in:
Jo0001 2021-06-10 22:15:14 +02:00 committed by GitHub
parent 206368b777
commit 317af7ebc5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -80,7 +80,7 @@ public class DumpSubCmd extends ViaSubCommand {
return;
}
try {
con.setRequestProperty("Content-Type", "text/plain");
con.setRequestProperty("Content-Type", "application/json");
con.addRequestProperty("User-Agent", "ViaVersion/" + version.getPluginVersion());
con.setRequestMethod("POST");
con.setDoOutput(true);