Closed lukekarrys closed 1 year ago
nice! that's good to know.
@webark I learned it while making this PR 😄 You're original PR was very helpful and I was fine to leave it as an https
request. But I decided to investigate a little since I'd be getting notifications for a flaky test and stumbled upon this fix.
it's probably good to still have a test that makes sure this works with a stream sent directly from http/https. I know nock
can return streams.
Force pushed a new commit that adds another test mocked with nock
.
I was able to replicate the same behavior from #332 by piping a readable stream with a
highWaterMark
of 1 to extract. I confirmed this test still failed without the fixes from #332 and now passes.