Skip to content

Commit 6c32c0f

Browse files
committed
lint fixes
Signed-off-by: Matteo Collina <[email protected]>
1 parent f2324e5 commit 6c32c0f

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

test/fetch/headers.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -677,7 +677,6 @@ tap.test('headers that might cause a ReDoS', (t) => {
677677
t.end()
678678
})
679679

680-
681680
tap.test('Headers.prototype.getSetCookie', (t) => {
682681
t.test('Mutating the returned list does not affect the set-cookie list', (t) => {
683682
const h = new Headers([
@@ -694,4 +693,4 @@ tap.test('Headers.prototype.getSetCookie', (t) => {
694693
})
695694

696695
t.end()
697-
})
696+
})

test/headers-crlf.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
const { test } = require('tap')
44
const { Client } = require('..')
55
const { createServer } = require('http')
6-
const EE = require('events')
76

87
test('CRLF Injection in Nodejs ‘undici’ via host', (t) => {
98
t.plan(1)
@@ -17,15 +16,15 @@ test('CRLF Injection in Nodejs ‘undici’ via host', (t) => {
1716
const client = new Client(`http://localhost:${server.address().port}`)
1817
t.teardown(client.close.bind(client))
1918

20-
const unsanitizedContentTypeInput = '12 \r\n\r\naaa:aaa'
19+
const unsanitizedContentTypeInput = '12 \r\n\r\naaa:aaa'
2120

2221
try {
2322
const { body } = await client.request({
2423
path: '/',
2524
method: 'POST',
2625
headers: {
2726
'content-type': 'application/json',
28-
'host': unsanitizedContentTypeInput
27+
host: unsanitizedContentTypeInput
2928
},
3029
body: 'asd'
3130
})

0 commit comments

Comments
 (0)