szmarczak / http2-wrapper

Use HTTP/2 the same way like HTTP/1
MIT License
240 stars 18 forks source link

Remove event listeners on the response `end` event #34

Closed szmarczak closed 4 years ago

szmarczak commented 4 years ago

https://github.com/szmarczak/http2-wrapper/blob/6058e1f879d0037d3ed41873d820779efac9d9ba/source/client-request.js#L222

I think that's the reason the Windows test fails: the stream may emit error after end (need to verify that).

A note to myself: check previous builds.

szmarczak commented 4 years ago

But that would lead to uncaught and unattached errors... The tests are fixed now, there was yet another reason for failing.