Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: check if route exist before checking Content-Type of body (#4286)
* check if route exist before checking content type * added test for route check before content type * pass tests - check if the route is 404 only if the content-parser is undefined by this we can avoid breaking changes. - this also passes previous tests this resolves issue - fastify/fastify-multipart#381 * Update lib/contentTypeParser.js Noted, thanks for the review Co-authored-by: Manuel Spigolon <behemoth89@gmail.com> * pass tests from wrong return Co-authored-by: Manuel Spigolon <behemoth89@gmail.com>
- Loading branch information
Showing
2 changed files
with
24 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters