mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2026-10-14 03:50:46 +02:00
🐛 Add rawBody to every request that n8n does not error if body is missing
This commit is contained in:
1 parent
843569f608
commit
7259aa4cf6
1 file changed
+2
@@ -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