diff --git a/launcher/src/main/java/com/skcraft/launcher/util/HttpRequest.java b/launcher/src/main/java/com/skcraft/launcher/util/HttpRequest.java index 5c97082..2f334bd 100644 --- a/launcher/src/main/java/com/skcraft/launcher/util/HttpRequest.java +++ b/launcher/src/main/java/com/skcraft/launcher/util/HttpRequest.java @@ -350,7 +350,7 @@ public class HttpRequest implements Closeable, ProgressObservable { } public Optional canRetryPartial() { - if (conn.getHeaderField("Accept-Ranges").equals("bytes")) { + if ("bytes".equals(conn.getHeaderField("Accept-Ranges"))) { return Optional.of(new PartialDownloadInfo(contentLength, readBytes)); }