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

fixes minor typo in ContentTypeParser.md #3273

Merged
merged 1 commit into from Aug 20, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/ContentTypeParser.md
Expand Up @@ -85,7 +85,7 @@ fastify.addContentTypeParser('text/xml', function (request, payload, done) {
})

// Removes the both built-in content type parsers so that only the content type parser for text/html is available
fastiy.removeContentTypeParser(['application/json', 'text/plain'])
fastify.removeContentTypeParser(['application/json', 'text/plain'])
```

#### removeAllContentTypeParsers
Expand All @@ -97,7 +97,7 @@ Just like `removeContentTypeParser`, this API supports encapsulation. The API is
[catch-all content type parser](#Catch-All) that should be executed for every content type and the built-in parsers should be ignored as well.

```js
fastiy.removeAllContentTypeParsers()
fastify.removeAllContentTypeParsers()

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