From 29aafb9cea842321e7379685e33194a1b34bb0dc Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Fri, 3 Jun 2005 14:06:03 +0000 Subject: Andres Garcia's text mode fix for the 'data' part --- tests/runtests.pl | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'tests/runtests.pl') diff --git a/tests/runtests.pl b/tests/runtests.pl index b0b3e24e5..572e06c51 100755 --- a/tests/runtests.pl +++ b/tests/runtests.pl @@ -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; -- cgit v1.2.3