Skip to content

Commit

Permalink
Fixed bearer token usage
Browse files Browse the repository at this point in the history
  • Loading branch information
nlulic committed Apr 25, 2020
1 parent fa3ea86 commit d41033f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/class-cf7-api-admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -592,7 +592,7 @@ private function send_lead( $record , $debug = false , $method = 'GET' , $record
}

if ( isset($bearer_auth) && $bearer_auth !== '' ) {
$args['headers']['Authorization'] = 'Basic ' . base64_encode( $bearer_auth );
$args['headers']['Authorization'] = 'Bearer ' . $bearer_auth;
}

if( $record_type == "xml" ){
Expand Down

0 comments on commit d41033f

Please sign in to comment.