File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
src/main/java/de/rub/nds/crawler/targetlist Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 99package de .rub .nds .crawler .targetlist ;
1010
1111import java .io .*;
12+ import java .net .URI ;
1213import java .net .URL ;
1314import java .nio .channels .Channels ;
1415import java .nio .channels .ReadableByteChannel ;
@@ -44,7 +45,7 @@ protected ZipFileProvider(
4445 public List <String > getTargetList () {
4546 List <String > targetList ;
4647 try (ReadableByteChannel readableByteChannel =
47- Channels .newChannel (new URL ( sourceUrl ).openStream ());
48+ Channels .newChannel (URL . of ( URI . create ( sourceUrl ), null ).openStream ());
4849 FileOutputStream fileOutputStream = new FileOutputStream (zipFilename )) {
4950 fileOutputStream .getChannel ().transferFrom (readableByteChannel , 0 , Long .MAX_VALUE );
5051 } catch (IOException e ) {
You can’t perform that action at this time.
0 commit comments