Navigation Menu

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

fix: add content type parsers after removeAllContentTypeParsers #3292

Merged
merged 1 commit into from Sep 5, 2021
Merged

fix: add content type parsers after removeAllContentTypeParsers #3292

merged 1 commit into from Sep 5, 2021

Conversation

realtimetodie
Copy link
Contributor

Checklist

Fixes an issue where it was not possible to add content type parsers after calling removeAllContentTypeParsers.

Example

fastify.removeAllContentTypeParsers()

fastify.addContentTypeParser('text/xml', function (request, payload, done) {
  xmlParser(payload, function (err, body) {
    done(err, body)
  })
})

Documentation

Copy link
Member

@mcollina mcollina left a comment

Choose a reason for hiding this comment

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

lgtm

@realtimetodie
Copy link
Contributor Author

added more tests

@mcollina mcollina merged commit 02d17b0 into fastify:main Sep 5, 2021
@github-actions
Copy link

github-actions bot commented Sep 6, 2022

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 6, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants