Skip to content

Commit

Permalink
fix for get-params in reactions
Browse files Browse the repository at this point in the history
  • Loading branch information
pterk committed Feb 4, 2019
1 parent ae13260 commit a4e0ca2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/GetStream/Stream/Reactions.php
Expand Up @@ -50,6 +50,10 @@ private function doRequest($method, $endpoint, $params=null)
if( $method === 'POST' || $method === 'PUT' ){
$params = ['json' => $params];
}
if( $method === 'GET' && $params !== null ){

$endpoint .= '?' . http_build_query($params);
}
try {
$response = $this->client->request($method, $endpoint, $params);
} catch (ClientException $e) {
Expand Down

0 comments on commit a4e0ca2

Please sign in to comment.