Try comment out setDoInput()
This commit is contained in:
1 parent
9e57c67b59
commit
0312be20b7
1 file changed
+1
-1
+1
-1
@@ -23,7 +23,7 @@ public class YggdrasilAuthenticator {
|
||||
try {
|
||||
HttpURLConnection conn = (HttpURLConnection) url.openConnection();
|
||||
conn.setRequestProperty("User-Agent", "Minecraft");
|
||||
conn.setDoInput(true);
|
||||
// conn.setDoInput(true);
|
||||
conn.setDoOutput(true);
|
||||
conn.setRequestMethod("POST");
|
||||
conn.setRequestProperty("Content-Type", "application/json");
|
||||
|
||||
Reference in new issue
Block a user