Skip to content
Snippets Groups Projects
Unverified Commit fe23bb59 authored by Robin Appelman's avatar Robin Appelman
Browse files

adjust post body for new guzzle


Signed-off-by: default avatarRobin Appelman <robin@icewind.nl>
parent 359ccbc0
No related branches found
No related tags found
No related merge requests found
......@@ -224,6 +224,10 @@ class Client implements IClient {
*/
public function post(string $uri, array $options = []): IResponse {
$this->setDefaultOptions();
if (isset($options['body']) && is_array($options['body'])) {
$options['form_params'] = $options['body'];
unset($options['body']);
}
$response = $this->client->request('post', $uri, array_merge($options, $this->getRequestOptions()));
return new Response($response);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment