From 237a871393de66b071641137a86aa618becb70c2 Mon Sep 17 00:00:00 2001 From: Steven Maguire Date: Wed, 28 Mar 2018 12:43:32 -0500 Subject: [PATCH] Update updateCardCustomField method to use send request as JSON with body --- CHANGELOG.md | 17 +++++++++++++++++ src/Http.php | 3 ++- 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9c612b2..ecf2f4c 100755 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/src/Http.php b/src/Http.php index 9e5f75e..e851d6c 100644 --- a/src/Http.php +++ b/src/Http.php @@ -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); }