We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 79bd80c commit dc05fe1Copy full SHA for dc05fe1
test/parallel/test-http-early-hints-invalid-argument.js
@@ -54,14 +54,14 @@ const testResBody = 'response content\n';
54
55
assert.throws(() => {
56
res.writeEarlyHints({
57
- link: '</styles.css>; rel=preload; as=style',
+ 'link': '</styles.css>; rel=preload; as=style',
58
'X-Custom': 'valid\r\nSet-Cookie: session=evil',
59
});
60
}, (err) => err.code === 'ERR_INVALID_CHAR');
61
62
63
64
65
'X-Custom\r\nSet-Cookie: session=evil': 'value',
66
67
}, (err) => err.code === 'ERR_INVALID_HTTP_TOKEN');
0 commit comments