logo

ap-client

CLI-based client / toolbox for ActivityPub Client-to-Servergit clone https://hacktivis.me/git/ap-client.git
commit: 62f61e651e316701a17f0c1565d2cb666a4638d9
parent 2e041a57d8ee20fd9d4cff742134b1ee8ce07e41
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Sat, 14 Aug 2021 11:28:01 +0200

ap-backup.pl: Fix Authorization

Diffstat:

Map-backup.pl5+++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/ap-backup.pl b/ap-backup.pl @@ -108,11 +108,12 @@ if($#ARGV != 0) { } if(defined $options{u}) { - $auth = "Basic ", encode_base64($options{u}); + $auth = "Basic ".encode_base64($options{u}); } if(defined $options{o}) { - $auth = "Bearer ", $options{o}; + $auth = "Bearer ".$options{o}; } +print "Authorization: $auth"; print "Fetching: ", $ARGV[0], "\n"; apc2s_backup($ARGV[0]);