Andres Garcia's text mode fix for the 'data' part

This commit is contained in:
Daniel Stenberg
2005-06-03 14:06:03 +00:00
parent 40eb7d0d48
commit 29aafb9cea
14 changed files with 33 additions and 14 deletions

View File

@@ -1366,6 +1366,14 @@ sub singletest {
if(!$replyattr{'nocheck'} && (@reply || $replyattr{'sendzero'})) {
# verify the received data
my @out = loadarray($CURLOUT);
my %hash = getpartattr("reply", "data");
# get the mode attribute
my $filemode=$hash{'mode'};
if(($filemode eq "text") && $has_textaware) {
# text mode when running on windows: fix line endings
map s/\r\n/\n/g, @out;
}
$res = compare("data", \@out, \@reply);
if ($res) {
return 1;