Skip to content

Commit

Permalink
Guzzle body must be JSON
Browse files Browse the repository at this point in the history
  • Loading branch information
Romain Biard committed Jan 19, 2017
1 parent 5225f12 commit 1fb4bc7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Strime/Slackify/Webhooks/Webhook.php
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ public function sendMessage($values) {
try {
$client = new \GuzzleHttp\Client();
$json_response = $client->request('POST', $this->url, [
'body' => $params
'body' => json_encode( $params )
]);
}
catch(RequestException $e) {
Expand Down

0 comments on commit 1fb4bc7

Please sign in to comment.