Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lambda-local as endpoint for aws-sdk #213

Open
andreme opened this issue Jul 12, 2021 · 1 comment
Open

lambda-local as endpoint for aws-sdk #213

andreme opened this issue Jul 12, 2021 · 1 comment

Comments

@andreme
Copy link

andreme commented Jul 12, 2021

aws-sdk sends requests as 'content-type': 'binary/octet-stream', which watch doesn't support.
Would you accept a PR that uses raw-body to handle those requests?

await lambdaLocal.execute({
	event: JSON.parse((await getRawBody(ctx.req)).toString()),
	lambdaPath: '...',
});
@gpotter2
Copy link
Collaborator

Sure!

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

No branches or pull requests

2 participants