Skip to content

Commit

Permalink
Fix not working on Velocity (#234)
Browse files Browse the repository at this point in the history
  • Loading branch information
yushijinhun committed Feb 17, 2024
1 parent 18d708d commit cf9248b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit cf9248b

Please sign in to comment.