Skip to content

Support for additional content types besides CloudEvents, application/json and text/plain #64

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

Closed
lance opened this issue Oct 6, 2020 · 1 comment · Fixed by #112
Closed
Labels
enhancement New feature or request

Comments

@lance
Copy link
Member

lance commented Oct 6, 2020

The underlying transport framework, fastify only provides content type parsing for application/json and text/plain. We already have a content type parser for application/json+cloudevent, but if the event data is anything other than text of JSON, the request will fail.

We should use Fastify's catch-all content type handler to deal with this.

@lance lance added the enhancement New feature or request label Oct 6, 2020
@lance
Copy link
Member Author

lance commented Dec 10, 2020

Depends on cloudevents/sdk-javascript#368

lance added a commit to lance/faas-js-runtime that referenced this issue Feb 1, 2022
@lance lance closed this as completed in #112 Feb 9, 2022
lance added a commit that referenced this issue Feb 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant