We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent eee9bf6 commit 85e1a7bCopy full SHA for 85e1a7b
src/fetch.ts
@@ -320,7 +320,7 @@ export function createFetch(globalOptions: CreateFetchOptions = {}): $Fetch {
320
let chunk;
321
console.log("Stream is readable (new data received in buffer)");
322
// Use a loop to make sure we read all currently available data
323
- while (null !== (chunk = context.response.body.read())) {
+ while ((chunk = context.response.body.read()) !== null) {
324
loaded += chunk.byteLength;
325
326
if (context.options.onResponseProgress) {
0 commit comments