mirror of
https://github.com/ViaVersion/ViaVersion.git
synced 2024-12-27 10:57:44 +01:00
Fix typo
This commit is contained in:
parent
c10c3547b9
commit
5e437d26d9
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user