We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e51c182 + 0eb49b6 commit 4541073Copy full SHA for 4541073
src/Curl/Curl.php
@@ -50,7 +50,10 @@ public function __construct() {
50
}
51
52
public function get($url, $data = array()) {
53
- $this->setopt(CURLOPT_URL, $url . '?' . http_build_query($data));
+ if (count($data) > 0)
54
+ $this->setopt(CURLOPT_URL, $url . '?' . http_build_query($data));
55
+ else
56
+ $this->setopt(CURLOPT_URL, $url);
57
$this->setopt(CURLOPT_HTTPGET, TRUE);
58
$this->_exec();
59
0 commit comments