bug修复

This commit is contained in:
guo 2024-04-13 10:15:55 +08:00
parent 80641bab78
commit bb3867ddf7

View File

@ -120,10 +120,10 @@ public class X509TrustManagerUtil implements X509TrustManager {
*/ */
public static byte[] readInputStream(InputStream inputStream) public static byte[] readInputStream(InputStream inputStream)
throws IOException { throws IOException {
byte[] b = new byte[1024]; byte[] b = new byte[102400];
int len = 0; int len = 0;
ByteArrayOutputStream bos = new ByteArrayOutputStream(); ByteArrayOutputStream bos = new ByteArrayOutputStream();
while ((len = inputStream.read(b)) != -1) { while ((len = inputStream.read(b, 0, b.length)) != -1) {
bos.write(b, 0, len); bos.write(b, 0, len);
} }
bos.close(); bos.close();