Skip to content

Commit

Permalink
docs: amend erroneous claims re. default matchers for json, urlencoded
Browse files Browse the repository at this point in the history
  • Loading branch information
Lordfirespeed committed Aug 20, 2024
1 parent 4c1eed0 commit 40ad14c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/content-types/json.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export type JsonBodyParsingOptions<
*
* The default matcher will match requests with Content-Type `application/json`, `application/manifest+json`, etc.
*
* @default typeChecker("+json")
* @default typeChecker("application/*+json")
*/
matcher?: (req: Req, res: Res) => boolean
}
Expand Down
2 changes: 1 addition & 1 deletion src/content-types/urlencoded.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export type UrlencodedBodyParsingOptions<
*
* The default matcher will match requests with Content-Type `application/x-www-form-urlencoded`, `application/foobar+x-www-form-urlencoded`, etc.
*
* @default typeChecker("+urlencoded")
* @default typeChecker("application/*+urlencoded")
*/
matcher?: (req: Req, res: Res) => boolean
}
Expand Down

0 comments on commit 40ad14c

Please sign in to comment.