Skip to content
This repository has been archived by the owner on Aug 17, 2020. It is now read-only.

RequestHeaders not copied when Lambda forks #182

Open
jonmarkprice opened this issue Apr 5, 2018 · 0 comments
Open

RequestHeaders not copied when Lambda forks #182

jonmarkprice opened this issue Apr 5, 2018 · 0 comments

Comments

@jonmarkprice
Copy link

When the timelimit is reached and Lambda forks, the request headers are not being copied over to arg.Flags.
The rest of the arguments are copied here:

func (l *goadLambda) getInvokeArgsForFork() invokeArgs {

Compare this to

func InvokeLambdas(inf Infrastructure) {

where Lambda is created for the first time, in particular. This loop
for _, v := range t.Headers {
args = append(args, fmt.Sprintf("--header=%s", v))
}

is missing from getInvokeArgsForFork.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant