diff --git a/src/main/java/moe/yushi/authlibinjector/httpd/URLProcessor.java b/src/main/java/moe/yushi/authlibinjector/httpd/URLProcessor.java index 9de18f3..8b2bfa6 100644 --- a/src/main/java/moe/yushi/authlibinjector/httpd/URLProcessor.java +++ b/src/main/java/moe/yushi/authlibinjector/httpd/URLProcessor.java @@ -188,7 +188,7 @@ private Response reverseProxy(IHTTPSession session, String upstream) throws IOEx conn.setDoOutput(clientIn != null); requestHeaders.forEach(conn::setRequestProperty); - if (clientIn != null) { + if (clientIn != null && !method.equalsIgnoreCase("GET") && !method.equalsIgnoreCase("HEAD")) { try (OutputStream upstreamOut = conn.getOutputStream()) { transfer(clientIn, upstreamOut); }