outputStream.close()

master
chengqf 2 years ago
parent 8f9078c456
commit d9b778ba6d

@ -1012,7 +1012,6 @@ public class IdcServiceImpl implements IdcService {
try { try {
Response result = client.newCall(request).execute(); Response result = client.newCall(request).execute();
if (MediaType.parse("application/force-download").equals(result.body().contentType())) { if (MediaType.parse("application/force-download").equals(result.body().contentType())) {
try (InputStream inputStream = result.body().byteStream()) { try (InputStream inputStream = result.body().byteStream()) {
String filePathSlash = filePath.substring(filePath.length() - 1).equals("/") ? "" : "/"; String filePathSlash = filePath.substring(filePath.length() - 1).equals("/") ? "" : "/";

Loading…
Cancel
Save