Skip to content

Commit 2121f60

Browse files
Copilotnadar
andcommitted
Also clear CURLOPT_POSTFIELDS in get() method for complete cleanup
Co-authored-by: nadar <[email protected]>
1 parent deaf30b commit 2121f60

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Curl/Curl.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -296,6 +296,7 @@ protected function setHttpAuth($httpauth)
296296
public function get($url, $data = array())
297297
{
298298
$this->setOpt(CURLOPT_CUSTOMREQUEST, null);
299+
$this->setOpt(CURLOPT_POSTFIELDS, null);
299300
if (count($data) > 0) {
300301
$this->setOpt(CURLOPT_URL, $url.'?'.http_build_query($data));
301302
} else {

0 commit comments

Comments
 (0)