feat: add request headers to trigger functions (#4012)

* add request headers to trigger functions

* reverse changes

* add headers in request config and trigger request
This commit is contained in:
Miguel Serrano
2017-07-14 19:19:00 +02:00
committed by Florent Vilmart
parent e6cc8204b3
commit 3c79cae1b2
3 changed files with 101 additions and 2 deletions

View File

@@ -108,6 +108,7 @@ export function handleParseHeaders(req, res, next) {
info.app = AppCache.get(info.appId);
req.config = new Config(info.appId, mount);
req.config.headers = req.headers || {};
req.info = info;
var isMaster = (info.masterKey === req.config.masterKey);