Skip to content

Commit

Permalink
Merge 748c799 into 90dd6f9
Browse files Browse the repository at this point in the history
  • Loading branch information
ardiadrianadri committed Jan 17, 2019
2 parents 90dd6f9 + 748c799 commit 1f684a8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions index.js
Expand Up @@ -27,9 +27,11 @@ module.exports = getCurrentNodeMethods() || getBasicNodeMethods()
*/

function getCurrentNodeMethods () {
return http.METHODS && http.METHODS.map(function lowerCaseMethod (method) {
const methods = http.METHODS && http.METHODS.map(function lowerCaseMethod (method) {
return method.toLowerCase()
})
});

return (methods && methods.length > 0) ? methods : false;
}

/**
Expand Down

0 comments on commit 1f684a8

Please sign in to comment.