Skip to content

Commit cd2eaf4

Browse files
committed
fix(fetch): pause stream if data is received before headers in HTTP/2
1 parent 8fce214 commit cd2eaf4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/web/fetch/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2230,7 +2230,7 @@ async function httpNetworkFetch (
22302230

22312231
// 4. See pullAlgorithm...
22322232

2233-
return this.body.push(bytes)
2233+
return this.body ? this.body.push(bytes) : false
22342234
},
22352235

22362236
onComplete () {

0 commit comments

Comments
 (0)