mirror of
https://github.com/moparisthebest/curl
synced 2025-02-28 17:31:46 -05:00
ftpserver.pl: Added fallback to <data> support when using multiple URLs
Added support for falling back to <data> when <data1>, <data2>, etc... don't exist in the <reply> section of a unit test.
This commit is contained in:
parent
8293691b88
commit
2baf38f7c3
@ -452,6 +452,9 @@ sub getreplydata {
|
||||
loadtest("$srcdir/data/test$testno");
|
||||
|
||||
my @data = getpart("reply", "data$testpart");
|
||||
if((!@data) && ($testpart ne "")) {
|
||||
@data = getpart("reply", "data");
|
||||
}
|
||||
|
||||
return @data;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user