Skip to content

Commit

Permalink
docs: readme - non ESM example (#1707)
Browse files Browse the repository at this point in the history
  • Loading branch information
Michal-Miky-Jankovsky committed Feb 1, 2023
1 parent 71e376b commit 8ced5b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -627,7 +627,7 @@ results in an [opaque-redirect filtered response](https://fetch.spec.whatwg.org/
node-fetch gives you the typical [basic filtered response](https://fetch.spec.whatwg.org/#concept-filtered-response-basic) instead.

```js
const fetch = require('node-fetch');
import fetch from 'node-fetch';

const response = await fetch('https://httpbin.org/status/301', { redirect: 'manual' });

Expand Down

0 comments on commit 8ced5b9

Please sign in to comment.