🐛 Add rawBody to every request that n8n does not error if body is missing
This commit is contained in:
@@ -297,6 +297,8 @@ class App {
|
||||
// Make sure that each request has the "parsedUrl" parameter
|
||||
this.app.use((req: express.Request, res: express.Response, next: express.NextFunction) => {
|
||||
(req as ICustomRequest).parsedUrl = parseUrl(req);
|
||||
// @ts-ignore
|
||||
req.rawBody = new Buffer('', 'base64');
|
||||
next();
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user