better management of curl reset

This commit is contained in:
garnier-quentin 2020-06-23 09:50:33 +02:00
parent 5e9a05c2a2
commit 10339ef814
1 changed files with 3 additions and 0 deletions

View File

@ -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 ;
}