Skip to content

Commit b38d97d

Browse files
Apply suggestions from code review
Co-authored-by: Livia Medeiros <[email protected]>
1 parent da306ae commit b38d97d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/parallel/test-http-set-trailers.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ function testHttp10(port, callback) {
4343

4444
c.on('end', common.mustCall(() => {
4545
c.end();
46+
// Ensure no trailer being in HTTP/1.0 response
4647
assert.doesNotMatch(
4748
res_buffer,
4849
/x-foo/,
@@ -68,6 +69,7 @@ function testHttp11(port, callback) {
6869
res_buffer += chunk;
6970
if (/0\r\n/.test(res_buffer)) { // got the end.
7071
clearTimeout(tid);
72+
// Ensure trailer being in HTTP/1.1 response
7173
assert.match(
7274
res_buffer,
7375
/0\r\nx-foo: bar\r\n\r\n$/,

0 commit comments

Comments
 (0)