Throw an error if HTTP file transfers are cleanly closed early
It seems that some HTTP servers can silently close the connection before
the file has finished transferring. Since we count the transferred bytes
anyway, throw an exception if we didn't get the number of bytes the
server previously told us to expect.
1 parent 8a2b566 commit 4da80dfae0260a514dfaeef06f80b1371e96e280
@Henry Le Grys Henry Le Grys authored on 9 Mar 2021
Showing 1 changed file
View
launcher/src/main/java/com/skcraft/launcher/util/HttpRequest.java