Skip to content

Commit 1d5fff2

Browse files
authored
Merge pull request #30 from alexstewartja/server-pairing-fix
Fix the headers being send while creating the key pair
2 parents 6101ec3 + 9a8e4eb commit 1d5fff2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Commands/CreateKeypair.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,8 +153,8 @@ public function pairWithServerAndCreateToken()
153153
$response = $bitpayClient->post('/tokens', [
154154
'json' => $postData,
155155
'headers' => [
156-
'x-accept-version: 2.0.0',
157-
'Content-Type: application/json',
156+
'x-accept-version' => '2.0.0',
157+
'Content-Type' => 'application/json',
158158
// Todo: If added below headers, bitpay responds with error, "This endpoint does not support the `user` facade"
159159
// 'x-identity' => $this->publicKey->__toString(),
160160
// 'x-signature' => $this->privateKey->sign($this->network.'/tokens'.json_encode($postData)),

0 commit comments

Comments
 (0)