This commit is contained in:
Myles 2017-01-12 22:10:05 +00:00
parent c10c3547b9
commit 5e437d26d9

View File

@ -53,7 +53,7 @@ public class DumpSubCmd extends ViaSubCommand {
@Override @Override
public void run() { public void run() {
HttpURLConnection con = null; HttpURLConnection con;
try { try {
con = (HttpURLConnection) new URL("https://api.github.com/gists").openConnection(); con = (HttpURLConnection) new URL("https://api.github.com/gists").openConnection();
} catch (IOException e) { } catch (IOException e) {
@ -62,7 +62,7 @@ public class DumpSubCmd extends ViaSubCommand {
return; return;
} }
try { try {
con.setRequestProperty("Content-Type", "application/jsom"); con.setRequestProperty("Content-Type", "application/json");
con.addRequestProperty("User-Agent", "ViaVersion"); con.addRequestProperty("User-Agent", "ViaVersion");
con.setRequestMethod("POST"); con.setRequestMethod("POST");
con.setDoOutput(true); con.setDoOutput(true);