Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
KhafraDev committed Feb 25, 2024
1 parent ddcf065 commit 5d21f73
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/issue-2065.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,14 @@ test('undici.request with a FormData body should set content-length header', asy
})

test('undici.request with a FormData stream value should set transfer-encoding header', { skip: !openAsBlob }, async (t) => {
const { ok } = tspl(t, { plan: 1 })

const server = createServer((req, res) => {
t.ok(req.headers['content-type'].startsWith('multipart/form-data'))
ok(req.headers['content-type'].startsWith('multipart/form-data'))
res.end()
}).listen(0)

t.teardown(server.close.bind(server))
t.after(server.close.bind(server))
await once(server, 'listening')

const body = new FormData()
Expand Down

0 comments on commit 5d21f73

Please sign in to comment.