runtests: only do CRLF replacements for hyper if it is HTTP

Closes #10016
This commit is contained in:
Daniel Stenberg 2022-12-01 17:25:25 +01:00
parent 5c27f6c452
commit 3dfb6aeabb
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2

View file

@ -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;
}
}