Prettified Code!

This commit is contained in:
daniep01
2022-07-16 21:12:52 +00:00
committed by GitHub Action
parent 7fbd0de9b5
commit 9d82ca2563

View File

@@ -43,7 +43,7 @@ instance.prototype.init = function () {
instance.prototype.auth = function () {
var self = this
self.header = []
if (self.config.apiToken !== null && self.config.apiToken.length > 0) {
auth = Buffer.from(self.config.apiToken + ':' + 'api_token').toString('base64')
self.header['Content-Type'] = 'application/json'