Skip to content

Commit

Permalink
Support HTTP redirects, fix #77
Browse files Browse the repository at this point in the history
  • Loading branch information
yushijinhun committed Aug 12, 2020
1 parent b4f571a commit 0bd7134
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/main/java/moe/yushi/authlibinjector/util/IOUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ public static byte[] http(String method, String url, byte[] payload, String cont
HttpURLConnection conn = createConnection(url, proxy);
conn.setRequestMethod(method);
conn.setDoOutput(true);
conn.setFixedLengthStreamingMode(payload.length);
conn.setRequestProperty("Content-Type", contentType);
try (OutputStream out = conn.getOutputStream()) {
out.write(payload);
Expand Down

0 comments on commit 0bd7134

Please sign in to comment.