Add request ip to request object (#4265)
* add the client ip to the request config object * add the config ip to the trigger request object * add the config ip to the functions request object * add tests * remove log * remove log
This commit is contained in:
committed by
Florent Vilmart
parent
9376b4d04a
commit
70ad9e9ffd
@@ -54,7 +54,8 @@ export class FunctionsRouter extends PromiseRouter {
|
||||
const request = {
|
||||
params: params,
|
||||
log: req.config.loggerController,
|
||||
headers: req.headers,
|
||||
headers: req.config.headers,
|
||||
ip: req.config.ip,
|
||||
jobName
|
||||
};
|
||||
const status = {
|
||||
@@ -111,7 +112,8 @@ export class FunctionsRouter extends PromiseRouter {
|
||||
user: req.auth && req.auth.user,
|
||||
installationId: req.info.installationId,
|
||||
log: req.config.loggerController,
|
||||
headers: req.headers,
|
||||
headers: req.config.headers,
|
||||
ip: req.config.ip,
|
||||
functionName
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user