mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-20 11:22:15 +00:00
feat(core): Upgrade to express 5 to address CVE-2024-52798 (#14332)
This commit is contained in:
committed by
GitHub
parent
02d11b5e7a
commit
4110f3188e
@@ -7,8 +7,8 @@ import { rawBodyReader, bodyParser } from '@/middlewares/body-parser';
|
||||
|
||||
describe('bodyParser', () => {
|
||||
const server = createServer((req: Request, res: Response) => {
|
||||
rawBodyReader(req, res, async () => {
|
||||
bodyParser(req, res, () => res.end(JSON.stringify(req.body)));
|
||||
void rawBodyReader(req, res, async () => {
|
||||
void bodyParser(req, res, () => res.end(JSON.stringify(req.body)));
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user