Skip to content

Commit cf23681

Browse files
authored
Merge pull request #103 from eyfs/master
Restore extra headers to sendData
2 parents a3ccde8 + d87bf8b commit cf23681

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/Message/AbstractRequest.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,11 @@ public function getHeaders()
192192
*/
193193
public function sendData($data)
194194
{
195-
$headers = array('Authorization' => 'Basic ' . base64_encode($this->getApiKey() . ':'));
195+
$headers = array_merge(
196+
$this->getHeaders(),
197+
array('Authorization' => 'Basic ' . base64_encode($this->getApiKey() . ':'))
198+
);
199+
196200
$body = $data ? http_build_query($data, '', '&') : null;
197201
$httpResponse = $this->httpClient->request($this->getHttpMethod(), $this->getEndpoint(), $headers, $body);
198202

0 commit comments

Comments
 (0)