From c9c66c057d57751c1a035b376fc450bf97b046d8 Mon Sep 17 00:00:00 2001 From: Guy Rombaut Date: Thu, 7 Jul 2022 16:34:12 +0200 Subject: [PATCH] Migrate to HTTP2 standard (lowercase headers) --- bitvavo.php | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/bitvavo.php b/bitvavo.php index f8ba8b6..0a9dc49 100644 --- a/bitvavo.php +++ b/bitvavo.php @@ -142,11 +142,11 @@ function sendPublic($url, $params, $method, $data) { } $sig = createSignature($now, $method, $endpointParams, [], $this->apiSecret); $headers = array( - 'Bitvavo-Access-Key: ' . $this->apiKey, - 'Bitvavo-Access-Signature: ' . $sig, - 'Bitvavo-Access-Timestamp: ' . (string)$now, - 'Bitvavo-Access-Window: ' . (string)$this->accessWindow, - 'Content-Type: application/json' + 'bitvavo-access-key: ' . $this->apiKey, + 'bitvavo-access-signature: ' . $sig, + 'bitvavo-access-timestamp: ' . (string)$now, + 'bitvavo-access-window: ' . (string)$this->accessWindow, + 'content-type: application/json' ); curl_setopt($curl, CURLOPT_HTTPHEADER, $headers); } @@ -166,11 +166,11 @@ function sendPrivate($endpoint, $params, $body, $method, $apiSecret, $base, $api $sig = createSignature($now, $method, $endpointParams, $body, $apiSecret); $curl = $this->createCurl($base . $endpoint, $method, $params); $headers = array( - 'Bitvavo-Access-Key: ' . $apiKey, - 'Bitvavo-Access-Signature: ' . $sig, - 'Bitvavo-Access-Timestamp: ' . (string)$now, - 'Bitvavo-Access-Window: ' . (string)$this->accessWindow, - 'Content-Type: application/json' + 'bitvavo-access-key: ' . $apiKey, + 'bitvavo-access-signature: ' . $sig, + 'bitvavo-access-timestamp: ' . (string)$now, + 'bitvavo-access-window: ' . (string)$this->accessWindow, + 'content-type: application/json' ); curl_setopt($curl, CURLOPT_HTTPHEADER, $headers); if($method == "POST") { @@ -838,4 +838,4 @@ public function subscriptionBook($market, callable $callback) { } } -?> \ No newline at end of file +?>