better management of curl reset
This commit is contained in:
parent
5e9a05c2a2
commit
10339ef814
|
@ -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…
Reference in New Issue