From 641dae8707fc2a71347cfe21965ecf45fee2b179 Mon Sep 17 00:00:00 2001 From: cnohall Date: Fri, 16 Jul 2021 07:46:57 +0200 Subject: [PATCH] set header as array --- HISTORY.md | 3 +++ README.md | 2 +- blockonomics-woocommerce.php | 2 +- php/Blockonomics.php | 2 +- 4 files changed, 6 insertions(+), 3 deletions(-) diff --git a/HISTORY.md b/HISTORY.md index 67671e37..a18105e5 100755 --- a/HISTORY.md +++ b/HISTORY.md @@ -1,5 +1,8 @@ == Changelog == += 3.3.1 = +* Minor bug fix + = 3.3 = * Minor Security fixes diff --git a/README.md b/README.md index 728e7e38..5f11214b 100755 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ **Tags:** bitcoin, accept bitcoin, bitcoin woocommerce, bitcoin wordpress plugin, bitcoin payments **Requires at least:** 3.0.1 **Tested up to:** 5.7 -**Stable tag:** 3.3 +**Stable tag:** 3.3.1 **License:** MIT **License URI:** http://opensource.org/licenses/MIT diff --git a/blockonomics-woocommerce.php b/blockonomics-woocommerce.php index 0b8cd3d5..30cd788b 100755 --- a/blockonomics-woocommerce.php +++ b/blockonomics-woocommerce.php @@ -3,7 +3,7 @@ * Plugin Name: WordPress Bitcoin Payments - Blockonomics * Plugin URI: https://github.com/blockonomics/woocommerce-plugin * Description: Accept Bitcoin Payments on your WooCommerce-powered website with Blockonomics - * Version: 3.3 + * Version: 3.3.1 * Author: Blockonomics * Author URI: https://www.blockonomics.co * License: MIT diff --git a/php/Blockonomics.php b/php/Blockonomics.php index 6e10cfaf..7e9352fd 100755 --- a/php/Blockonomics.php +++ b/php/Blockonomics.php @@ -317,7 +317,7 @@ private function post($url, $api_key = '', $body = '', $timeout = '') private function set_headers($api_key) { if($api_key){ - return 'Authorization: Bearer ' . $api_key; + return array('Authorization' => 'Bearer ' . $api_key); }else{ return ''; }