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:
Родитель
8293691b88
Коммит
2baf38f7c3
|
@ -452,6 +452,9 @@ sub getreplydata {
|
||||||
loadtest("$srcdir/data/test$testno");
|
loadtest("$srcdir/data/test$testno");
|
||||||
|
|
||||||
my @data = getpart("reply", "data$testpart");
|
my @data = getpart("reply", "data$testpart");
|
||||||
|
if((!@data) && ($testpart ne "")) {
|
||||||
|
@data = getpart("reply", "data");
|
||||||
|
}
|
||||||
|
|
||||||
return @data;
|
return @data;
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче