diff --git a/src/main/java/moe/yushi/authlibinjector/util/IOUtils.java b/src/main/java/moe/yushi/authlibinjector/util/IOUtils.java index 22c8723..29debd6 100644 --- a/src/main/java/moe/yushi/authlibinjector/util/IOUtils.java +++ b/src/main/java/moe/yushi/authlibinjector/util/IOUtils.java @@ -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);