Skip to content

Commit

Permalink
Fix missing formatOptions in postJson (#2412)
Browse files Browse the repository at this point in the history
  • Loading branch information
sy-records authored Mar 25, 2022
1 parent 8753076 commit af79efa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Kernel/Traits/HttpClientMethods.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public function postJson(string $url, array $options = []): ResponseInterfaceAli
{
$options['headers']['Content-Type'] = 'application/json';

return $this->request('POST', $url, $options);
return $this->request('POST', $url, RequestUtil::formatOptions($options, 'POST'));
}

/**
Expand Down

1 comment on commit af79efa

@vercel
Copy link

@vercel vercel bot commented on af79efa Mar 25, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.