From e55fc1a4216c19e168feea2540dcf7b57412f175 Mon Sep 17 00:00:00 2001 From: Redkale <22250530@qq.com> Date: Mon, 14 Nov 2016 15:49:03 +0800 Subject: [PATCH] --- src/org/redkale/util/Utility.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;