got 11.8.5 → 11.8.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.
@@ -118,6 +118,7 @@ function asPromise(normalizedOptions) {
118
118
  request._beforeError(new types_1.HTTPError(response));
119
119
  return;
120
120
  }
121
+ request.destroy();
121
122
  resolve(request.options.resolveBodyOnly ? response.body : response);
122
123
  });
123
124
  const onError = (error) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "got",
3
- "version": "11.8.5",
3
+ "version": "11.8.6",
4
4
  "description": "Human-friendly and powerful HTTP request library for Node.js",
5
5
  "license": "MIT",
6
6
  "repository": "sindresorhus/got",
@@ -61,6 +61,7 @@
61
61
  "@sinonjs/fake-timers": "^6.0.1",
62
62
  "@types/benchmark": "^1.0.33",
63
63
  "@types/express": "^4.17.7",
64
+ "@types/express-serve-static-core": "4.17.18 - 4.17.30",
64
65
  "@types/node": "^14.14.0",
65
66
  "@types/node-fetch": "^2.5.7",
66
67
  "@types/pem": "^1.9.5",