got 15.0.3 → 15.0.4

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.
@@ -456,7 +456,13 @@ export default class Request extends Duplex {
456
456
  if (progress.percent < 1) {
457
457
  this.emit('downloadProgress', progress);
458
458
  }
459
+ if (this._stopReading) {
460
+ return;
461
+ }
459
462
  this.push(data);
463
+ if (this._stopReading) {
464
+ return;
465
+ }
460
466
  }
461
467
  }
462
468
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "got",
3
- "version": "15.0.3",
3
+ "version": "15.0.4",
4
4
  "description": "Human-friendly and powerful HTTP request library for Node.js",
5
5
  "license": "MIT",
6
6
  "repository": "sindresorhus/got",