diff --git a/misc-scripts/xref_mapping/XrefParser/FetchFiles.pm b/misc-scripts/xref_mapping/XrefParser/FetchFiles.pm index 2d40810a17cbf6f861d49e3ca7c95e8f367a638f..0920bf95b2dfbf4beed7f53c4ac2bf2f8582bacd 100644 --- a/misc-scripts/xref_mapping/XrefParser/FetchFiles.pm +++ b/misc-scripts/xref_mapping/XrefParser/FetchFiles.pm @@ -203,7 +203,10 @@ sub fetch_files { } elsif ( $uri->scheme() eq 'http' ) { # Deal with HTTP files. - my $file_path = catfile( $dest_dir, basename( $uri->path() ) ); + my $filename = basename ($uri->path() ); + if ($uri->path eq '') { $filename = "index.html"; } + + my $file_path = catfile( $dest_dir, $filename ); if ( $deletedownloaded && -e $file_path ) { if ($verbose) {