Skip to content

Commit 44af78e

Browse files
authored
Merge pull request #7 from dpdconnect/1.1.2
1.1.2
2 parents 577e7c0 + 5b530cf commit 44af78e

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Diff for: composer.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "dpdconnect/php-sdk",
3-
"description": "DPD Magento2 Shipping extension",
4-
"type": "magento2-library",
3+
"description": "DPD Connect PHP SDK",
4+
"type": "library",
55
"license": "OSL-3.0",
66
"authors": [
77
{

Diff for: src/Common/AuthenticatedHttpClient.php

+1
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ public function sendRequest($httpMethod, $resourceName, array $query = [], array
7373
}
7474

7575
// Since the Authorization Bearer always is the last added item, we overwrite it like this
76+
unset($headers[0]);
7677
$headers[count($headers) - 1] = sprintf('Authorization: Bearer %s', $this->authentication->getJwtToken());
7778
$response = $this->basicHttpClient->sendRequest($httpMethod, $resourceName, $query, $headers, $body);
7879
} catch (AuthenticateException $exception) {

0 commit comments

Comments
 (0)