diff --git a/src/api/http.js b/src/api/http.js index 63fd4cb..264f7d9 100644 --- a/src/api/http.js +++ b/src/api/http.js @@ -25,7 +25,8 @@ function handleHTTP(globalArgs, req, res, next, callback, isPost) { const providedArgsCount = providedArgs.length; for (let i = 0; i < providedArgsCount; i += 1) { const providedArg = providedArgs[i]; - const value = (isPost ? req.body : req.query)[providedArg.name]; + const argValues = { ...req.headers, ...(isPost ? req.body : req.query) }; + const value = argValues[providedArg.name] || argValues[providedArg.name.toLowerCase()]; if (value != null) { let validType = null;