[FIX] Исправление UrlEncode символа /

This commit is contained in:
Gravit 2019-04-26 08:08:51 +07:00
parent d7351ce474
commit 27c4224030
No known key found for this signature in database
GPG key ID: 061981E1E85D3216

View file

@ -48,7 +48,7 @@ public void download(String base, List<DownloadTask> applies, Path dstDirFile, D
HttpGet get = null;
for (DownloadTask apply : applies) {
URI u = new URL(base.concat(IOHelper.urlEncode(apply.apply))).toURI();
URI u = new URL(base.concat(IOHelper.urlEncode(apply.apply).replace("%2F", "/"))).toURI();
callback.stateChanged(apply.apply,0L, apply.size);
LogHelper.debug("Download URL: %s", u.toString());
if (get == null) get = new HttpGet(u);