3
0
Mirror von https://github.com/ViaVersion/ViaVersion.git synchronisiert 2024-07-11 17:58:03 +02:00

Use the correct content-type header (#2527)

Dieser Commit ist enthalten in:
Jo0001 2021-06-10 22:15:14 +02:00 committet von GitHub
Ursprung 206368b777
Commit 317af7ebc5
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 4AEE18F83AFDEB23

Datei anzeigen

@ -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);