In a mocha test suite, I am trying to use Fetch API to fetch gzipped content, I have tried to use node-fetch , but response.json()
always returns undefined.
I have an opened an issue here , But in the meantime, Is there any JS module that provides fetch polyfill for nodejs runtime and also supports gzipped content ?
My bad. Node-fetch is just working wonderfully well. I had forgotten to return a Promise.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.