express-rate-limit 5.2.5 → 5.2.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/lib/express-rate-limit.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# Express Rate Limit
|
|
2
2
|
|
|
3
3
|

|
|
4
|
-
[](https://npmjs.org/package/express-rate-limit "View this project on NPM")
|
|
5
5
|
[](https://www.npmjs.com/package/express-rate-limit)
|
|
6
6
|
|
|
7
7
|
|
|
@@ -82,7 +82,7 @@ function RateLimit(options) {
|
|
|
82
82
|
res.setHeader("X-RateLimit-Remaining", req.rateLimit.remaining);
|
|
83
83
|
if (resetTime instanceof Date) {
|
|
84
84
|
// if we have a resetTime, also provide the current date to help avoid issues with incorrect clocks
|
|
85
|
-
res.setHeader("Date", new Date().
|
|
85
|
+
res.setHeader("Date", new Date().toUTCString());
|
|
86
86
|
res.setHeader(
|
|
87
87
|
"X-RateLimit-Reset",
|
|
88
88
|
Math.ceil(resetTime.getTime() / 1000)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "express-rate-limit",
|
|
3
|
-
"version": "5.2.
|
|
3
|
+
"version": "5.2.6",
|
|
4
4
|
"description": "Basic IP rate-limiting middleware for Express. Use to limit repeated requests to public APIs and/or endpoints such as password reset.",
|
|
5
5
|
"homepage": "https://github.com/nfriedly/express-rate-limit",
|
|
6
6
|
"author": {
|