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

@@ -133,7 +133,8 @@ export function getRequestObject(triggerType, auth, parseObject, originalParseOb
triggerName: triggerType,
object: parseObject,
master: false,
log: config.loggerController
log: config.loggerController,
headers: config.headers,
};
if (originalParseObject) {
@@ -164,7 +165,8 @@ export function getRequestQueryObject(triggerType, auth, query, count, config, i
master: false,
count,
log: config.loggerController,
isGet
isGet,
headers: config.headers,
};
if (!auth) {