diff --git a/src/org/redkale/util/Utility.java b/src/org/redkale/util/Utility.java index 1470053a9..74ff3c76d 100644 --- a/src/org/redkale/util/Utility.java +++ b/src/org/redkale/util/Utility.java @@ -642,7 +642,7 @@ public final class Utility { conn.disconnect(); return remoteHttpContent(ctx, method, newurl, headers, body); } - InputStream in = rs < 400 || rs == 404 ? conn.getInputStream() : conn.getErrorStream(); + InputStream in = (rs < 400 || rs == 404) && rs != 405 ? conn.getInputStream() : conn.getErrorStream(); ByteArrayOutputStream out = new ByteArrayOutputStream(1024); byte[] bytes = new byte[1024]; int pos;