From fb342ad750a19055b9238f2343d290921ae8876c Mon Sep 17 00:00:00 2001 From: hurui <177768073@qq.com> Date: Wed, 22 Feb 2023 10:27:34 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hai-service/src/main/java/com/hai/common/utils/HttpsUtils.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hai-service/src/main/java/com/hai/common/utils/HttpsUtils.java b/hai-service/src/main/java/com/hai/common/utils/HttpsUtils.java index 8d2d9708..3af6de15 100644 --- a/hai-service/src/main/java/com/hai/common/utils/HttpsUtils.java +++ b/hai-service/src/main/java/com/hai/common/utils/HttpsUtils.java @@ -120,10 +120,12 @@ public class HttpsUtils { if (entity != null) { InputStream instream = entity.getContent(); result = IOUtils.toString(instream, "UTF-8"); + instream.close(); } return JSON.parseObject(result); } catch (Exception e) { log.error(e.getMessage(),e); + } finally { } return null; }