Fix bad logic surrounding download resuming
An oversight in the implementation of partial download resumption led
to cross-contamination in the presence of multiple request URLs, where
an `Accept-Ranges` header from one server would cause a `Range` header
to be supplied to the next. Compounded with a bad ternary expression
in `HttpRequest` which couldn't handle non-200 success codes, this
was causing cryptic "Stream closed" errors on library downloads.
1 parent f7bbe82 commit f23d38760981e17849da406df45d634a04144f8f
@Henry Le Grys Henry Le Grys authored on 31 Mar 2021
Showing 2 changed files
View
launcher/src/main/java/com/skcraft/launcher/install/HttpDownloader.java
View
launcher/src/main/java/com/skcraft/launcher/util/HttpRequest.java