File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -83,7 +83,10 @@ protected function getResponse():HTTPResponseInterface{
8383 'Connection: close ' ,
8484 ];
8585
86- $ url = $ this ->requestURL .(!empty ($ this ->requestParams ) ? '? ' .$ this ->buildQuery ($ this ->requestParams ) : '' );
86+ parse_str ($ this ->parsedURL ['query ' ] ?? '' , $ parsedquery );
87+ $ params = array_merge ($ parsedquery , $ this ->requestParams );
88+
89+ $ url = $ this ->requestURL .(!empty ($ params ) ? '? ' .http_build_query ($ params ) : '' );
8790
8891 $ options += [
8992 CURLOPT_URL => $ url ,
@@ -96,8 +99,6 @@ protected function getResponse():HTTPResponseInterface{
9699 $ response = curl_exec ($ this ->http );
97100 $ curl_info = curl_getinfo ($ this ->http );
98101
99- curl_close ($ this ->http );
100-
101102 return new HTTPResponse ([
102103 'url ' => $ url ,
103104 'curl_info ' => $ curl_info ,
You can’t perform that action at this time.
0 commit comments