We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ecd2107 commit 23b7098Copy full SHA for 23b7098
packages/fetch/src/fetch.js
@@ -346,7 +346,7 @@ function fixResponseChunkedTransferBadEnding(request, errorCallback) {
346
}
347
};
348
349
- /** @param {Buffer} buf */
+ /** @param {Buffer} buf */
350
const onData = buf => {
351
properLastChunkReceived = Buffer.compare(buf.slice(-5), LAST_CHUNK) === 0;
352
@@ -361,7 +361,7 @@ function fixResponseChunkedTransferBadEnding(request, errorCallback) {
361
previousChunk = buf;
362
363
364
- socket.prependListener('close', onSocketClose);
+ socket.prependListener('close', onSocketClose);
365
socket.on('data', onData);
366
367
request.on('close', () => {
0 commit comments