mirror of
https://github.com/n8n-io/n8n.git
synced 2025-01-12 13:27:31 -08:00
⚡ Update buffer code to not get deprecation message
This commit is contained in:
parent
23f8b2b4df
commit
a9bfb506ff
|
@ -298,7 +298,7 @@ class App {
|
||||||
this.app.use((req: express.Request, res: express.Response, next: express.NextFunction) => {
|
this.app.use((req: express.Request, res: express.Response, next: express.NextFunction) => {
|
||||||
(req as ICustomRequest).parsedUrl = parseUrl(req);
|
(req as ICustomRequest).parsedUrl = parseUrl(req);
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
req.rawBody = new Buffer('', 'base64');
|
req.rawBody = Buffer.from('', 'base64');
|
||||||
next();
|
next();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue