]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
runtests: only do CRLF replacements for hyper if it is HTTP
authorDaniel Stenberg <daniel@haxx.se>
Thu, 1 Dec 2022 16:25:25 +0000 (17:25 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 1 Dec 2022 20:19:40 +0000 (21:19 +0100)
Closes #10016

tests/runtests.pl

index 283e5f6072415594c3a4c4bdcc3e491a7df8bdc2..b40b21d728144a3f51f9794f6f6758e5fe4385ec 100755 (executable)
@@ -3728,7 +3728,8 @@ sub prepro {
             # The processor does CRLF replacements in the <data*> sections if
             # necessary since those parts might be read by separate servers.
             if($s =~ /^ *<data(.*)\>/) {
-                if($1 =~ /crlf="yes"/ || $has_hyper) {
+                if($1 =~ /crlf="yes"/ ||
+                   ($has_hyper && ($keywords{"HTTP"} || $keywords{"HTTPS"}))) {
                     $data_crlf = 1;
                 }
             }