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

Honor error code in response #2

Merged
merged 1 commit into from
Dec 3, 2022

Conversation

aloukissas
Copy link
Contributor

I noticed when using the library that it would always return HTTP-200, regardless of what the lambda returns.

This PR addresses this, by (a) removing the premature res.send() and (b) replacing the res.end() with res.send().

Copy link
Owner

@matthewkeil matthewkeil left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Really EXCELLENT catch! Thank you very much for the help!

  • Matt
    :)

@matthewkeil matthewkeil merged commit 8133a84 into matthewkeil:master Dec 3, 2022
@aloukissas aloukissas deleted the honor-status-code branch December 3, 2022 01:29
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

Successfully merging this pull request may close these issues.

2 participants