Remove comma from cloudflare's token end

Idk if it's happening to anyone else
This commit is contained in:
Rafael Gawenda 2024-07-11 11:20:45 +02:00 committed by GitHub
parent 2e26a63c2f
commit 3a1cbc7d5d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -6196,7 +6196,9 @@ sub nic_cloudflare_update {
my $headers = "Content-Type: application/json\n";
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 {
$headers .= "X-Auth-Email: $config{$key}{'login'}\n";
$headers .= "X-Auth-Key: $config{$key}{'password'}\n";