Merge branch 'dev'

This commit is contained in:
wangliwen 2022-11-08 10:47:47 +08:00
commit ac7f94f4f0
1 changed files with 1 additions and 1 deletions

View File

@ -56,7 +56,7 @@ public class UpdateUtil {
if (!folder.isDirectory()) {
folder.mkdirs();
}
Request request = new Request.Builder().url(updateFile).build();
Request request = new Request.Builder().url(updateFile).addHeader("Connection", "close").get().build();
try (Response response = client.newCall(request).execute()) {
if (response.isSuccessful()) {
try (InputStream is = response.body().byteStream(); FileOutputStream fos = new FileOutputStream(file)) {