Merge branch 'master' into docker_package

This commit is contained in:
wangliwen 2022-11-08 10:47:54 +08:00
commit 2462ce3b65
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)) {