diff --git a/meshctrl.js b/meshctrl.js index 8796d1b0..9dd44265 100644 --- a/meshctrl.js +++ b/meshctrl.js @@ -1018,7 +1018,7 @@ function serverConnect() { if (args.loginuser != null) { username = args.loginuser; } var token = ''; if (args.token != null) { token = ',' + Buffer.from('' + args.token).toString('base64'); } - options.headers = { 'x-meshauth': Buffer.from(username).toString('base64') + ',' + Buffer.from(args.loginpass).toString('base64') + token } + options.headers = { 'x-meshauth': Buffer.from('' + username).toString('base64') + ',' + Buffer.from('' + args.loginpass).toString('base64') + token } } // Cookie authentication