From 8f7ca376a9322cf75d72346ee81fd4cd7deb223d Mon Sep 17 00:00:00 2001 From: Redkale <22250530@qq.com> Date: Mon, 25 Jul 2016 17:07:26 +0800 Subject: [PATCH] --- src/org/redkale/util/Utility.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/org/redkale/util/Utility.java b/src/org/redkale/util/Utility.java index 8e886052f..8f3a3c1ce 100644 --- a/src/org/redkale/util/Utility.java +++ b/src/org/redkale/util/Utility.java @@ -424,7 +424,7 @@ public final class Utility { * 将两个数字组装成一个long * * @param high 高位值 - * @param low 低位值 + * @param low 低位值 * * @return long值 */ @@ -617,7 +617,7 @@ public final class Utility { conn.disconnect(); return remoteHttpContent(ctx, method, newurl, headers, body); } - InputStream in = conn.getInputStream(); + InputStream in = rs < 400 ? conn.getInputStream() : conn.getErrorStream(); ByteArrayOutputStream out = new ByteArrayOutputStream(1024); byte[] bytes = new byte[1024]; int pos;