mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-10 14:44:05 -08:00
🐛 Add rawBody to every request that n8n does not error if body is missing
This commit is contained in:
parent
843569f608
commit
7259aa4cf6
|
@ -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();
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue