Remove comma from cloudflare's token end
Idk if it's happening to anyone else
This commit is contained in:
parent
2e26a63c2f
commit
3a1cbc7d5d
1 changed files with 3 additions and 1 deletions
|
|
@ -6196,7 +6196,9 @@ sub nic_cloudflare_update {
|
||||||
|
|
||||||
my $headers = "Content-Type: application/json\n";
|
my $headers = "Content-Type: application/json\n";
|
||||||
if ($config{$key}{'login'} eq 'token') {
|
if ($config{$key}{'login'} eq 'token') {
|
||||||
$headers .= "Authorization: Bearer $config{$key}{'password'}\n";
|
my $token = $config{$key}{'password'};
|
||||||
|
$token =~ s/,$//;
|
||||||
|
$headers .= "Authorization: Bearer $token\n";
|
||||||
} else {
|
} else {
|
||||||
$headers .= "X-Auth-Email: $config{$key}{'login'}\n";
|
$headers .= "X-Auth-Email: $config{$key}{'login'}\n";
|
||||||
$headers .= "X-Auth-Key: $config{$key}{'password'}\n";
|
$headers .= "X-Auth-Key: $config{$key}{'password'}\n";
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue