Skip to content

Commit bb2742c

Browse files
committed
Fixed building the request with headers
1 parent a08fbb6 commit bb2742c

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
55
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
66

7+
## [0.7.2] - 2018-05-17
8+
9+
### Fixed
10+
11+
* Fixed building the request with headers
12+
713
## [0.7.1] - 2018-05-16
814

915
### Fixed

src/Client.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ public function request(string $method, string $endpoint, $body = null, array $h
158158
*/
159159
protected function buildRequest(string $method, string $endpoint, $body = null, array $headers = []): RequestInterface
160160
{
161-
return $this->messageFactory->createRequest($method, $this->getEndpoint($endpoint), [], $body, $this->mergeHeaders($headers));
161+
return $this->messageFactory->createRequest($method, $this->getEndpoint($endpoint), $this->mergeHeaders($headers), $body);
162162
}
163163

164164
/**

0 commit comments

Comments
 (0)