Skip to content

Commit

Permalink
docs(readme): response.clone() is not async (#1560)
Browse files Browse the repository at this point in the history
  • Loading branch information
SgtPooki committed May 20, 2022
1 parent 043a5fc commit 6ae9c76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -594,7 +594,7 @@ The recommended way to fix this problem is to resolve cloned response in paralle
import fetch from 'node-fetch';

const response = await fetch('https://example.com');
const r1 = await response.clone();
const r1 = response.clone();

const results = await Promise.all([response.json(), r1.text()]);

Expand Down

0 comments on commit 6ae9c76

Please sign in to comment.