Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fixup! default behaviour
  • Loading branch information
benjamingr committed Dec 7, 2020
commit 1b3e4d1d6a8ad1205324fae907d296e10b00ca68
3 changes: 3 additions & 0 deletions lib/internal/streams/add-abort-signal.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ module.exports.addAbortSignal = function addAbortSignal(signal, stream) {
return module.exports.addAbortSignalNoValidate(signal, stream);
};
module.exports.addAbortSignalNoValidate = function(signal, stream) {
Comment thread
benjamingr marked this conversation as resolved.
if (!signal) {
Comment thread
benjamingr marked this conversation as resolved.
Outdated
return stream;
}
const onAbort = () => {
stream.destroy(new AbortError());
};
Expand Down