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 authored and crysmags committed Feb 27, 2024
1 parent 0fb1e5f commit 1803143
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 1803143

Please sign in to comment.