Commit 0d39be77 authored by Sebastiaan Deckers's avatar Sebastiaan Deckers 馃悜

fix: subtle change in 10.12 where aborted no longer fires on client

parent e9a1d5c0
......@@ -64,10 +64,8 @@ function receiveHttp2 (url, options = {}) {
done(stream, { request, response, data })
})
})
stream.on('aborted', () => {
if (stream.rstCode === 8) {
done(stream, { request, rstCode: stream.rstCode })
}
stream.on('close', () => {
done(stream, { request, rstCode: stream.rstCode })
})
stream.on('error', (error) => {
done(stream, { request, error })
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment