This commit is contained in:
fenghua.yu 2020-05-25 17:44:03 +08:00
parent 34e50e73fd
commit 2da06cf05b

View File

@ -133,7 +133,7 @@ public class HttpClient {
//inputStream from HttpURLConnection can be closed automatically,but new GZIPInputStream can't be closed automatically //inputStream from HttpURLConnection can be closed automatically,but new GZIPInputStream can't be closed automatically
//so needs to close it manually //so needs to close it manually
if (inputStream instanceof GZIPInputStream) { if (inputStream instanceof GZIPInputStream) {
inputStream.close(); inputStream.close();
} }
return httpResult; return httpResult;
} }