We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 73c7efb + 70c464c commit 4691583Copy full SHA for 4691583
src/request-base.js
@@ -501,10 +501,6 @@ RequestBase.prototype.abort = function () {
501
throw new Error(
502
'Superagent does not work in v13 properly with abort() due to Node.js core changes'
503
);
504
- } else if (semver.gte(process.version, 'v14.0.0')) {
505
- // We have to manually set `destroyed` to `true` in order for this to work
506
- // (see core internals of end-of-stream.js above in v14 branch as compared to v12)
507
- this.req.destroyed = true;
508
}
509
510
this.req.abort(); // node
0 commit comments