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 CHANGED
@@ -1,7 +1,7 @@
1
1
  # Express Rate Limit
2
2
 
3
3
  ![Node.js CI](https://github.com/nfriedly/express-rate-limit/workflows/Node.js%20CI/badge.svg)
4
- [![NPM version](http://badge.fury.io/js/express-rate-limit.png)](https://npmjs.org/package/express-rate-limit "View this project on NPM")
4
+ [![NPM version](https://img.shields.io/npm/v/express-rate-limit.svg)](https://npmjs.org/package/express-rate-limit "View this project on NPM")
5
5
  [![npm downloads](https://img.shields.io/npm/dm/express-rate-limit)](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().toGMTString());
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.5",
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": {