Skip to content

Commit

Permalink
lint fixes
Browse files Browse the repository at this point in the history
Signed-off-by: Matteo Collina <hello@matteocollina.com>
  • Loading branch information
mcollina committed Feb 13, 2023
1 parent f2324e5 commit 6c32c0f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
3 changes: 1 addition & 2 deletions test/fetch/headers.js
Original file line number Diff line number Diff line change
Expand Up @@ -677,7 +677,6 @@ tap.test('headers that might cause a ReDoS', (t) => {
t.end()
})


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

t.end()
})
})
5 changes: 2 additions & 3 deletions test/headers-crlf.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
const { test } = require('tap')
const { Client } = require('..')
const { createServer } = require('http')
const EE = require('events')

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

const unsanitizedContentTypeInput = '12 \r\n\r\naaa:aaa'
const unsanitizedContentTypeInput = '12 \r\n\r\naaa:aaa'

try {
const { body } = await client.request({
path: '/',
method: 'POST',
headers: {
'content-type': 'application/json',
'host': unsanitizedContentTypeInput
host: unsanitizedContentTypeInput
},
body: 'asd'
})
Expand Down

0 comments on commit 6c32c0f

Please sign in to comment.