mirror of
https://github.com/goldbergyoni/nodebestpractices.git
synced 2025-10-28 11:35:59 +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
|
||||
|
||||
res.writeHead(200);
|
||||
res.end()
|
||||
res.end();
|
||||
})
|
||||
.catch(() => {
|
||||
res.writeHead(429);
|
||||
|
||||
Reference in New Issue
Block a user