mirror of
https://github.com/curl/curl.git
synced 2024-12-03 06:20:31 +08:00
runtests.pl: support attribute "nonewline" in part verify/upload.
This commit is contained in:
parent
328ce03d53
commit
3bbe894fd2
@ -3755,6 +3755,13 @@ sub singletest {
|
||||
|
||||
# if this section exists, we verify upload
|
||||
my @upload = getpart("verify", "upload");
|
||||
if(@upload) {
|
||||
my %hash = getpartattr("verify", "upload");
|
||||
if($hash{'nonewline'}) {
|
||||
# cut off the final newline from the final line of the upload data
|
||||
chomp($upload[$#upload]);
|
||||
}
|
||||
}
|
||||
|
||||
# if this section exists, it might be FTP server instructions:
|
||||
my @ftpservercmd = getpart("reply", "servercmd");
|
||||
|
Loading…
Reference in New Issue
Block a user