Parcourir la source

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.
Jocelyn Turcotte il y a 9 ans
Parent
commit
2507ba9818
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      csync/tests/ownCloud/ownCloud/Test.pm

+ 1 - 1
csync/tests/ownCloud/ownCloud/Test.pm

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