From 40ad14c5612ad168a12f16752544f6db2acfa239 Mon Sep 17 00:00:00 2001 From: Lordfirespeed <28568841+Lordfirespeed@users.noreply.github.com> Date: Tue, 20 Aug 2024 15:39:28 +0100 Subject: [PATCH] docs: amend erroneous claims re. default matchers for json, urlencoded --- src/content-types/json.ts | 2 +- src/content-types/urlencoded.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/content-types/json.ts b/src/content-types/json.ts index e83a3d1..70c2ae7 100644 --- a/src/content-types/json.ts +++ b/src/content-types/json.ts @@ -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 } diff --git a/src/content-types/urlencoded.ts b/src/content-types/urlencoded.ts index 8b95f1c..3cc3731 100644 --- a/src/content-types/urlencoded.ts +++ b/src/content-types/urlencoded.ts @@ -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 }