FIX: fixed authentication in non container environments

FIXES: #18

Notified by Hartmut
This commit is contained in:
Dominik Meyer 2024-02-27 22:36:49 +01:00
parent 2d613ea87e
commit d70e2d118a
Signed by: byterazor
GPG Key ID: EABDA0FD5981BC97
1 changed files with 4 additions and 2 deletions

View File

@ -93,9 +93,9 @@ sub NFTY_Calc_Auth_Token
return;
}
my $auth=encode_base64($username.":".$password);
my $auth=encode_base64($username.":".$password, "");
my $authString = encode_base64("Basic " . $auth);
my $authString = encode_base64("Basic " . $auth, "");
$authString =~ s/=//g;
return $authString;
@ -220,6 +220,8 @@ sub NTFY_Publish_Msg
$message->{priority} = $msg->{priority};
}
NTFY_LOG(LOG_DEBUG, "Publish:" . Dumper($message));
my $param = {
url => $url,