From: Daniel Stenberg Date: Thu, 1 Dec 2022 16:25:25 +0000 (+0100) Subject: runtests: only do CRLF replacements for hyper if it is HTTP X-Git-Tag: curl-7_87_0~80 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3dfb6aeabb557f00999a6d4e673844c5bc0ecd9e;p=thirdparty%2Fcurl.git runtests: only do CRLF replacements for hyper if it is HTTP Closes #10016 --- diff --git a/tests/runtests.pl b/tests/runtests.pl index 283e5f6072..b40b21d728 100755 --- a/tests/runtests.pl +++ b/tests/runtests.pl @@ -3728,7 +3728,8 @@ sub prepro { # The processor does CRLF replacements in the sections if # necessary since those parts might be read by separate servers. if($s =~ /^ */) { - if($1 =~ /crlf="yes"/ || $has_hyper) { + if($1 =~ /crlf="yes"/ || + ($has_hyper && ($keywords{"HTTP"} || $keywords{"HTTPS"}))) { $data_crlf = 1; } }