diff options
author | Daniel Stenberg <daniel@haxx.se> | 2005-06-03 14:06:03 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2005-06-03 14:06:03 +0000 |
commit | 29aafb9cea842321e7379685e33194a1b34bb0dc (patch) | |
tree | d14b3df7adeb4cfd8507219c76701f3ec15a0499 /tests/runtests.pl | |
parent | 40eb7d0d48a61865bff9f0d6e336ef9491515f0b (diff) |
Andres Garcia's text mode fix for the 'data' part
Diffstat (limited to 'tests/runtests.pl')
-rwxr-xr-x | tests/runtests.pl | 8 |
1 files changed, 8 insertions, 0 deletions
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; |