Fix default protocol http expected-content

This commit is contained in:
garnier-quentin 2019-03-26 09:29:08 +01:00
parent 92246bfaff
commit 0dc2237360
1 changed files with 1 additions and 1 deletions

View File

@ -150,7 +150,7 @@ sub check_options {
# Legacy compat
if (defined($self->{option_results}->{expected_string}) && $self->{option_results}->{expected_string} ne '') {
$self->{option_results}->{critical_content} = "%{content} =~ /$self->{option_results}->{expected_string}/mi";
$self->{option_results}->{critical_content} = "%{content} !~ /$self->{option_results}->{expected_string}/mi";
}
$self->{http}->set_options(%{$self->{option_results}});