Skip to content

Commit

Permalink
Merge pull request #4 from jbkingsley/master
Browse files Browse the repository at this point in the history
Update Client.php
  • Loading branch information
walkor committed Nov 24, 2020
2 parents 950923c + 6293104 commit f4a4365
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ public function process($address)
$request = new Request($url);
$data = isset($options['data']) ? $options['data'] : '';
if ($data || $data === '0' || $data === 0) {
if (isset($options['method']) && strtoupper($options['method']) === 'POST') {
if (isset($options['method']) && (strtoupper($options['method']) === 'POST' || strtoupper($options['method']) === 'PUT' || strtoupper($options['method']) === 'PATCH')) {
$request->write($options['data']);
} else {
$options['query'] = $data;
Expand Down

0 comments on commit f4a4365

Please sign in to comment.