mirror of
https://github.com/ViaVersion/ViaVersion.git
synced 2024-09-30 07:27:45 +02:00
Use the correct content-type header (#2527)
This commit is contained in:
parent
206368b777
commit
317af7ebc5
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user