mirror of
https://github.com/goldbergyoni/nodebestpractices.git
synced 2025-10-28 19:43:38 +08:00
Update sections/security/limitrequests.md
Codestyle fix Co-Authored-By: animir <animir@ya.ru>
This commit is contained in:
@ -30,7 +30,7 @@ Rate limiting should be implemented in your application to protect a Node.js app
|
|||||||
// Some app logic here
|
// Some app logic here
|
||||||
|
|
||||||
res.writeHead(200);
|
res.writeHead(200);
|
||||||
res.end()
|
res.end();
|
||||||
})
|
})
|
||||||
.catch(() => {
|
.catch(() => {
|
||||||
res.writeHead(429);
|
res.writeHead(429);
|
||||||
|
|||||||
Reference in New Issue
Block a user