header_ok() function must accept HTTP versions other than just '1'
This commit is contained in:
parent
cde60432dd
commit
3a73e5e6b4
1 changed files with 1 additions and 1 deletions
|
@ -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$/) {
|
||||
|
|
Loading…
Reference in a new issue