diff --git a/lib/models/access-token.js b/lib/models/access-token.js index f5f66d20..2171016e 100644 --- a/lib/models/access-token.js +++ b/lib/models/access-token.js @@ -191,11 +191,9 @@ function tokenIdForRequest(req, options) { var length; var id; - params.push('access_token'); - headers.push('X-Access-Token'); - headers.push('authorization'); - cookies.push('access_token'); - cookies.push('authorization'); + params = params.concat(['access_token']); + headers = headers.concat(['X-Access-Token', 'authorization']); + cookies = cookies.concat(['access_token', 'authorization']); for(length = params.length; i < length; i++) { id = req.param(params[i]);