From 5719e44b5999bb84e2fd50c8a469cc8934539747 Mon Sep 17 00:00:00 2001 From: Ricardo Espinoza Date: Mon, 18 Apr 2022 12:50:40 -0400 Subject: [PATCH] fix(core): Add "rawBody" also for xml requests (#3143) --- packages/cli/src/Server.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/cli/src/Server.ts b/packages/cli/src/Server.ts index 4233340a8e..c3ec821d9a 100644 --- a/packages/cli/src/Server.ts +++ b/packages/cli/src/Server.ts @@ -613,6 +613,9 @@ class App { normalizeTags: true, // Transform tags to lowercase explicitArray: false, // Only put properties in array if length > 1 }, + verify: (req: express.Request, res: any, buf: any) => { + req.rawBody = buf; + }, }), );