Merge branch 'dev'
This commit is contained in:
commit
ac7f94f4f0
|
@ -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)) {
|
||||
|
|
Loading…
Reference in New Issue