@belmonddev/catch-request-express-middleware 3.3.1 → 3.3.2

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.
Files changed (2) hide show
  1. package/index.js +3 -0
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -150,6 +150,9 @@ const callIncomingRequestsCbs = (req, res, incomingRequestsCb, body) => {
150
150
  if (req.socketClosed) {
151
151
  callResponseCb(responseCb, res);
152
152
  } else {
153
+ req.socket.on('timeout', () => {
154
+ res.statusCode = null;
155
+ });
153
156
  req.socket.on('close', () => {
154
157
  callResponseCb(responseCb, res);
155
158
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@belmonddev/catch-request-express-middleware",
3
- "version": "3.3.1",
3
+ "version": "3.3.2",
4
4
  "main": "index.js",
5
5
  "author": "David Escalera",
6
6
  "license": "ISC",