diff --git a/Service/ApiProvider.php b/Service/ApiProvider.php index 61f6c1a..19974a1 100644 --- a/Service/ApiProvider.php +++ b/Service/ApiProvider.php @@ -190,6 +190,7 @@ private function formatOptions(array $body, array $headers, bool $verify, string $contentType = $headers['Content-Type'] ?? null; if ($contentType === 'application/x-www-form-urlencoded') { $options['form_params'] = $body; + unset($options['body'], $options['query']); } $options['headers'] = $headers; $options['verify'] = $verify; diff --git a/composer.json b/composer.json index 387e3fb..87299ee 100755 --- a/composer.json +++ b/composer.json @@ -2,7 +2,7 @@ "name": "zepgram/module-rest", "description": "Technical module to industrialize API REST call with dependency injection pattern using Guzzle library", "type": "magento2-module", - "version": "1.1.4", + "version": "1.1.5", "authors": [ { "name": "Benjamin Calef",