mirror of
https://github.com/yushijinhun/authlib-injector.git
synced 2024-11-15 06:11:09 +01:00
Support HTTP redirects, fix #77
This commit is contained in:
parent
b4f571a88d
commit
0bd7134c81
1 changed files with 0 additions and 1 deletions
|
@ -58,7 +58,6 @@ public final class IOUtils {
|
|||
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);
|
||||
|
|
Loading…
Reference in a new issue