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

Update webhook to accept x-www-form-urlencoded requests #54

Merged
merged 3 commits into from Aug 9, 2020

Conversation

wperron
Copy link
Contributor

@wperron wperron commented Aug 8, 2020

Refactor content-type verification to the main handler instead of in each
integration. Add tests for form urlencoded cases. Add utils function
to generate mock web-form APIGateway event.

Fixes #33

Refactor content-type verification to the main handler instead of in each
integration. Add tests for form urlencoded cases. Add utils function
to generate mock web-form APIGateway event.

Fixes denoland#33
Copy link
Member

@lucacasonato lucacasonato left a comment

Choose a reason for hiding this comment

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

Thanks @wperron 👍

utils/http.ts Outdated Show resolved Hide resolved
utils/test_utils.ts Outdated Show resolved Hide resolved
utils/http.ts Outdated Show resolved Hide resolved
Split b64 decoding and form URL decode

Co-authored-by: Luca Casonato <luca.casonato@antipy.com>
Copy link
Member

@lucacasonato lucacasonato left a comment

Choose a reason for hiding this comment

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

I just tested this in a staging environment and it works great. Thanks @wperron!

@lucacasonato lucacasonato merged commit d94996c into denoland:main Aug 9, 2020
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.

Webhooks should also support content-type application/x-www-form-encoded
2 participants