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

Fix #182 by passing --header args to new Lambda on fork. #183

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions lambda/lambda.go
Original file line number Diff line number Diff line change
Expand Up @@ -580,6 +580,10 @@ func (l *goadLambda) getInvokeArgsForFork() invokeArgs {
fmt.Sprintf("--method=%s", settings.RequestParameters.RequestMethod),
fmt.Sprintf("--body=%s", settings.RequestParameters.RequestBody),
}
for _, v := range settings.RequestParameters.RequestHeaders {
args.Flags = append(args.Flags, fmt.Sprintf("--header=%s", v))
}

args.Flags = append(args.Flags, fmt.Sprintf("%s", params.URL))
fmt.Println(args.Flags)
return args
Expand Down