Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set header as Array instead of string #259

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions HISTORY.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
== Changelog ==

= 3.3.1 =
* Minor bug fix

= 3.3 =
* Minor Security fixes

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion blockonomics-woocommerce.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion php/Blockonomics.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 '';
}
Expand Down