From 95a25c4bcf6e0173c08a27feaa4f528919094ecf Mon Sep 17 00:00:00 2001 From: Maschell Date: Tue, 30 Apr 2019 09:31:31 +0200 Subject: [PATCH] Fix the Range attribute for downloading --- src/de/mas/wiiu/jnus/utils/download/NUSDownloadService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/de/mas/wiiu/jnus/utils/download/NUSDownloadService.java b/src/de/mas/wiiu/jnus/utils/download/NUSDownloadService.java index d256191..6c55406 100644 --- a/src/de/mas/wiiu/jnus/utils/download/NUSDownloadService.java +++ b/src/de/mas/wiiu/jnus/utils/download/NUSDownloadService.java @@ -86,7 +86,7 @@ public final class NUSDownloadService extends Downloader { URL url_obj = new URL(URL); HttpURLConnection connection = (HttpURLConnection) url_obj.openConnection(); connection.setRequestProperty("User-Agent", Settings.USER_AGENT); - connection.setRequestProperty("Range", "bytes=" + offset + "-" + Long.toString(size)); + connection.setRequestProperty("Range", "bytes=" + offset + "-" + Long.toString(offset + size)); try { connection.connect(); } catch (Exception e) {