1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-22 08:08:50 -05:00

runtests.pl: support attribute "nonewline" in part verify/upload.

This commit is contained in:
Patrick Monnerat 2017-09-05 17:10:05 +01:00
parent 328ce03d53
commit 3bbe894fd2

View File

@ -3755,6 +3755,13 @@ sub singletest {
# if this section exists, we verify upload # if this section exists, we verify upload
my @upload = getpart("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: # if this section exists, it might be FTP server instructions:
my @ftpservercmd = getpart("reply", "servercmd"); my @ftpservercmd = getpart("reply", "servercmd");