Skip to content

Commit

Permalink
Update updateCardCustomField method to use send request as JSON with …
Browse files Browse the repository at this point in the history
…body
  • Loading branch information
stevenmaguire committed Mar 28, 2018
1 parent e13cdab commit 237a871
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
17 changes: 17 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,23 @@

All Notable changes to `trello-php` will be documented in this file

## 0.5.3 - 2018-03-28

### Added
- Nothing

### Deprecated
- Nothing

### Fixed
- Update updateCardCustomField method to use send request as JSON with body

### Removed
- Nothing

### Security
- Nothing

## 0.5.2 - 2018-03-26

### Added
Expand Down
3 changes: 2 additions & 1 deletion src/Http.php
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,8 @@ public function put($path, $parameters)
public function putAsBody($path, $parameters)
{
$request = $this->getRequest(static::HTTP_PUT, $path)
->withBody(Psr7\stream_for(json_encode($parameters)));
->withBody(Psr7\stream_for(json_encode($parameters)))
->withHeader('content-type', 'application/json');

return $this->sendRequest($request);
}
Expand Down

0 comments on commit 237a871

Please sign in to comment.