header_ok() function must accept HTTP versions other than just '1'

This commit is contained in:
David Kerr 2020-08-21 16:59:07 -04:00
parent cde60432dd
commit 3a73e5e6b4

View file

@ -2913,7 +2913,7 @@ sub header_ok {
my ($host, $line) = @_;
my $ok = 0;
if ($line =~ m%^s*HTTP/1.*\s+(\d+)%i) {
if ($line =~ m%^s*HTTP/.*\s+(\d+)%i) {
my $result = $1;
if ($result =~ m/^2\d\d$/) {