Remove trailing spaces
This commit is contained in:
parent
46587e3cf1
commit
7c7d606aa7
@ -28,7 +28,7 @@ const apikeyGetters = [
|
||||
|
||||
function getApikeyTokenFromHeaderAuthorization(req) {
|
||||
const credentials = basicAuth(req);
|
||||
|
||||
|
||||
if (credentials) {
|
||||
return {
|
||||
username: credentials.username,
|
||||
@ -36,7 +36,7 @@ function getApikeyTokenFromHeaderAuthorization(req) {
|
||||
};
|
||||
} else {
|
||||
return {
|
||||
username: null,
|
||||
username: null,
|
||||
token: null,
|
||||
};
|
||||
}
|
||||
@ -44,13 +44,13 @@ function getApikeyTokenFromHeaderAuthorization(req) {
|
||||
|
||||
function getApikeyTokenFromRequestQueryString(req) {
|
||||
let token = null;
|
||||
|
||||
|
||||
if (req.query && req.query.api_key) {
|
||||
token = req.query.api_key;
|
||||
} else if (req.query && req.query.map_key) {
|
||||
token = req.query.map_key;
|
||||
}
|
||||
|
||||
|
||||
return {
|
||||
username: null,
|
||||
token: token,
|
||||
@ -59,7 +59,7 @@ function getApikeyTokenFromRequestQueryString(req) {
|
||||
|
||||
function getApikeyTokenFromRequestBody(req) {
|
||||
let token = null;
|
||||
|
||||
|
||||
if (req.body && req.body.api_key) {
|
||||
token = req.body.api_key;
|
||||
} else if (req.body && req.body.map_key) {
|
||||
|
Loading…
Reference in New Issue
Block a user