Skip to content

Commit

Permalink
[v2.0.2] unset body and query when required
Browse files Browse the repository at this point in the history
  • Loading branch information
zepgram committed May 6, 2024
2 parents 02afcbf + 8c275f9 commit fdb773b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Service/ApiBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ private function getOptions(ApiProviderInterface $apiProvider, RequestAdapter $r
$contentType = $requestAdapter->getHeaders()['Content-Type'] ?? null;
if ($contentType === 'application/x-www-form-urlencoded') {
$options['form_params'] = $body;
unset($options['body']);
unset($options['body'], $options['query']);
}
$options['headers'] = $requestAdapter->getHeaders();
$options['verify'] = $apiProvider->isVerify();
Expand Down

0 comments on commit fdb773b

Please sign in to comment.