mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-07-28 16:14:21 +02:00
better management of curl reset
This commit is contained in:
parent
3648354ce8
commit
c0c8c83c2f
@ -157,6 +157,9 @@ sub curl_setopt {
|
||||
sub set_method {
|
||||
my ($self, %options) = @_;
|
||||
|
||||
$self->curl_setopt(option => $self->{constant_cb}->(name => 'CURLOPT_CUSTOMREQUEST'), parameter => undef);
|
||||
$self->curl_setopt(option => $self->{constant_cb}->(name => 'CURLOPT_HTTPGET'), parameter => 1);
|
||||
|
||||
if ($options{request}->{method} eq 'GET') {
|
||||
return ;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user