Skip to content

Commit

Permalink
Merge branch 'dev' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
darrynten authored May 31, 2017
2 parents 27c7bcc + 7963a39 commit bffe698
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Request/RequestHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,7 @@ public function handleRequest(string $method, string $uri = '', array $options =
// Send as get params
$options['query'] = $parameters;
}

if ($method === 'POST') {
if ($method === 'POST' || $method === 'PATCH' || $method === 'DELETE') {
// Otherwise send JSON in the body
$options['json'] = (object)$parameters;
}
Expand Down

0 comments on commit bffe698

Please sign in to comment.