tx.pl: Fix each put_to_dir taking 10 seconds

The open function expects a URL, passing only the directory name would
lead HTTP::DAV to try looking it as an hostname on the network and
only return after it timed out.
This commit is contained in:
Jocelyn Turcotte 2016-08-12 12:50:57 +02:00
parent 3e64840e33
commit 2507ba9818

View file

@ -520,7 +520,7 @@ sub put_to_dir( $$;$ )
$targetUrl = $optionsRef->{url};
}
}
$d->open($dir);
$d->open($targetUrl . $dir);
my $filename = $file;
$filename =~ s/^.*\///;