Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
test: fix lint errors in test-http-early-hints-invalid-argument
  • Loading branch information
rsclarke committed Feb 24, 2026
commit dc05fe1b05a8dff84f22f2f214efdb8dbc095f10
4 changes: 2 additions & 2 deletions test/parallel/test-http-early-hints-invalid-argument.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,14 +54,14 @@ const testResBody = 'response content\n';

assert.throws(() => {
res.writeEarlyHints({
link: '</styles.css>; rel=preload; as=style',
'link': '</styles.css>; rel=preload; as=style',
'X-Custom': 'valid\r\nSet-Cookie: session=evil',
});
}, (err) => err.code === 'ERR_INVALID_CHAR');

assert.throws(() => {
res.writeEarlyHints({
link: '</styles.css>; rel=preload; as=style',
'link': '</styles.css>; rel=preload; as=style',
'X-Custom\r\nSet-Cookie: session=evil': 'value',
});
}, (err) => err.code === 'ERR_INVALID_HTTP_TOKEN');
Expand Down
Loading