Skip to content

Commit

Permalink
docs: Fix typo around sending a file (#1381)
Browse files Browse the repository at this point in the history
  • Loading branch information
jimmywarting committed Nov 12, 2021
1 parent 30c3cfe commit 3f0e0c2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -41,7 +41,7 @@
- [Streams](#streams)
- [Accessing Headers and other Metadata](#accessing-headers-and-other-metadata)
- [Extract Set-Cookie Header](#extract-set-cookie-header)
- [Post data using a file stream](#post-data-using-a-file-stream)
- [Post data using a file](#post-data-using-a-file)
- [Request cancellation with AbortSignal](#request-cancellation-with-abortsignal)
- [API](#api)
- [fetch(url[, options])](#fetchurl-options)
Expand Down Expand Up @@ -403,7 +403,7 @@ node-fetch also supports any spec-compliant FormData implementations such as [fo

```js
import fetch from 'node-fetch';
import {FormData} from 'formdata-polyfill/esm-min.js';
import {FormData} from 'formdata-polyfill/esm.min.js';

// Alternative hack to get the same FormData instance as node-fetch
// const FormData = (await new Response(new URLSearchParams()).formData()).constructor
Expand Down

0 comments on commit 3f0e0c2

Please sign in to comment.