Skip to content

Commit 37fbd5c

Browse files
authored
fixup do not destroy the HTTP2 stream twice (#4637)
1 parent 5172564 commit 37fbd5c

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

test/http2-dispatcher.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -156,11 +156,7 @@ test('Dispatcher#Connect', async t => {
156156
})
157157

158158
stream.respond({ ':status': 200, 'x-my-header': response.headers['x-my-header'] })
159-
pipeline(response.body, stream, (err) => {
160-
if (err) {
161-
stream.destroy(err)
162-
}
163-
})
159+
pipeline(response.body, stream, () => {})
164160
} catch (err) {
165161
stream.destroy(err)
166162
}

0 commit comments

Comments
 (0)