Skip to content

Commit 7dab95a

Browse files
committed
test(http): avoid ambiguous host regex
1 parent f1b0c4d commit 7dab95a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

__tests__/integration/http-server.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1672,7 +1672,7 @@ async function runTests() {
16721672
assert.equal(res.status, 403);
16731673
assert.equal(res.body.error.code, -32000);
16741674
assert.equal(res.body.error.message, 'Invalid Host header');
1675-
assert.doesNotMatch(res.text, /evil\.example\.com/);
1675+
assert.equal(res.text.includes('evil.example.com'), false);
16761676
}, results);
16771677

16781678
await testFunction('multiple sessions can initialize without "Already connected" error', async () => {

0 commit comments

Comments
 (0)