Skip to content

Commit 861d37d

Browse files
committed
new X-Hmac-Authorization
1 parent f8ac6aa commit 861d37d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/Client.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,7 @@ public function request(
102102
$this->secretKey
103103
) {
104104
$string = $method . ' /' . $path;
105-
$authPart = base64_encode($this->apiKey . ':' .
106-
hash_hmac('sha256', $string, $this->secretKey, true));
105+
$authPart = base64_encode($this->apiKey . ':' . hash_hmac('sha256', $string, $this->secretKey));
107106
$authHeader = 'X-Hmac-Authorization: ' . $authPart;
108107

109108
$curlHeaderList[] = $authHeader;

0 commit comments

Comments
 (0)