Skip to content

Commit 0f122b8

Browse files
authored
docs: fix formdata code example (#1562)
1 parent 6ae9c76 commit 0f122b8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -428,7 +428,7 @@ import fetch, { FormData, File, fileFrom } from 'node-fetch'
428428
const httpbin = 'https://httpbin.org/post'
429429
const formData = new FormData()
430430
const binary = new Uint8Array([ 97, 98, 99 ])
431-
const abc = new File([binary], 'abc.txt'), { type: 'text/plain' })
431+
const abc = new File([binary], 'abc.txt', { type: 'text/plain' })
432432

433433
formData.set('greeting', 'Hello, world!')
434434
formData.set('file-upload', abc, 'new name.txt')

0 commit comments

Comments
 (0)