We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 451da54 commit 086788aCopy full SHA for 086788a
src/CurlClient.php
@@ -83,7 +83,10 @@ protected function getResponse():HTTPResponseInterface{
83
'Connection: close',
84
];
85
86
- $url = $this->requestURL.(!empty($this->requestParams) ? '?'.$this->buildQuery($this->requestParams) : '');
+ parse_str($this->parsedURL['query'] ?? '', $parsedquery);
87
+ $params = array_merge($parsedquery, $this->requestParams);
88
+
89
+ $url = $this->requestURL.(!empty($params) ? '?'.http_build_query($params) : '');
90
91
$options += [
92
CURLOPT_URL => $url,
@@ -96,8 +99,6 @@ protected function getResponse():HTTPResponseInterface{
96
99
$response = curl_exec($this->http);
97
100
$curl_info = curl_getinfo($this->http);
98
101
- curl_close($this->http);
-
102
return new HTTPResponse([
103
'url' => $url,
104
'curl_info' => $curl_info,
0 commit comments