Skip to content

Commit

Permalink
fix: fetch don't bind stream to closure
Browse files Browse the repository at this point in the history
  • Loading branch information
ronag committed Dec 8, 2021
1 parent d1bd730 commit b905cea
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/fetch/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -1612,6 +1612,7 @@ function httpNetworkFetch (
{
decoder: null,
abort: null,
stream,
context,

onConnect (abort) {
Expand All @@ -1638,6 +1639,9 @@ function httpNetworkFetch (
)
}

const { stream } = this
this.stream = null

registry.register(stream, this.abort, this)

response = makeResponse({
Expand Down

0 comments on commit b905cea

Please sign in to comment.