This commit is contained in:
Redkale
2016-07-25 17:07:26 +08:00
parent 82b041e6d5
commit 8f7ca376a9

View File

@@ -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;