File tree 1 file changed +4
-3
lines changed
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{
83
83
'Connection: close ' ,
84
84
];
85
85
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 ) : '' );
87
90
88
91
$ options += [
89
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
99
- curl_close ($ this ->http );
100
-
101
102
return new HTTPResponse ([
102
103
'url ' => $ url ,
103
104
'curl_info ' => $ curl_info ,
You can’t perform that action at this time.
0 commit comments