diff --git a/apps/sahipro/restapi/mode/scenario.pm b/apps/sahipro/restapi/mode/scenario.pm index 180f100e6..96da32dc3 100644 --- a/apps/sahipro/restapi/mode/scenario.pm +++ b/apps/sahipro/restapi/mode/scenario.pm @@ -211,7 +211,7 @@ sub check_options { } $self->change_macros(macros => ['warning_status', 'critical_status']); - $self->{http}->set_options(%{$self->{option_results}}); + $self->{http}->set_options(port => $self->{option_results}->{sahi_port}, proto => $self->{option_results}->{sahi_proto}); } sub decode_xml_response { diff --git a/centreon/plugins/http.pm b/centreon/plugins/http.pm index 8c8c4f456..794e506f3 100644 --- a/centreon/plugins/http.pm +++ b/centreon/plugins/http.pm @@ -104,7 +104,6 @@ sub check_options { $self->{output}->option_exit(); } - $options{request}->{port} = $self->get_port_request(); $options{request}->{port_force} = $self->get_port(); $options{request}->{headers} = {};