Bugfix
This commit is contained in:
@@ -19,7 +19,7 @@ let headers = function(withJson) {
|
|||||||
if (withJson) {
|
if (withJson) {
|
||||||
ret['Content-Type'] = 'application/json';
|
ret['Content-Type'] = 'application/json';
|
||||||
}
|
}
|
||||||
if (apiToken) {
|
if (typeof(apiToken) !== 'undefined') {
|
||||||
ret['Authorization'] = `Bearer ${apiToken}`;
|
ret['Authorization'] = `Bearer ${apiToken}`;
|
||||||
}
|
}
|
||||||
return ret;
|
return ret;
|
||||||
|
Reference in New Issue
Block a user