We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3a8aeb2 commit e03581cCopy full SHA for e03581c
1 file changed
src/Client.php
@@ -176,10 +176,11 @@ public function addOptions(array $params)
176
*/
177
public function post($fields = [], array $options = [])
178
{
179
- return $this->get($options + [
+ $this->addOptions($options + [
180
CURLOPT_POST => true,
181
CURLOPT_POSTFIELDS => $fields
182
]);
183
+ return $this->exec();
184
}
185
186
/**
@@ -191,10 +192,11 @@ public function post($fields = [], array $options = [])
191
192
193
public function put(array $fields = [], array $options = [])
194
195
196
CURLOPT_CUSTOMREQUEST => 'PUT',
197
CURLOPT_POSTFIELDS => is_array($fields) ? http_build_query($fields) : $fields
198
199
200
201
202
0 commit comments