Skip to content

Commit

Permalink
Merge 1dbf936 into a76e925
Browse files Browse the repository at this point in the history
  • Loading branch information
greenkeeper[bot] committed Mar 2, 2017
2 parents a76e925 + 1dbf936 commit 4cd6a50
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,16 +33,16 @@
"chai-as-promised": "6.0.0",
"coveralls": "2.11.16",
"eslint": "3.16.1",
"eslint-config-standard": "6.2.1",
"eslint-config-standard": "7.0.0",
"eslint-plugin-mocha": "4.8.0",
"eslint-plugin-promise": "3.5.0",
"eslint-plugin-standard": "2.0.1",
"istanbul": "0.4.5",
"mocha": "3.2.0",
"semantic-release": "6.3.2",
"pre-git": "3.14.0",
"standard": "8.6.0",
"testdouble": "1.11.1"
"standard": "9.0.0",
"testdouble": "1.11.2"
},
"config": {
"pre-git": {
Expand Down
1 change: 0 additions & 1 deletion src/routes/route.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,3 @@ class Route {
}

module.exports = Route

2 changes: 1 addition & 1 deletion src/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const apiKeyScheme = () => {
authenticate: function (request, reply) {
const { headers, query } = request

const apiKey = headers[ 'x-api-key' ] || query && query.key
const apiKey = headers[ 'x-api-key' ] || (query && query.key)
if (!apiKey) {
return reply(Boom.unauthorized('Missing API key'))
}
Expand Down

0 comments on commit 4cd6a50

Please sign in to comment.