How do I unzip a gzipped body in a request\'s module response?
I have tried several examples around the web but none of them appear to work.
request(
With got, a request alternative, you can simply do:
request
got(url).then(response => { console.log(response.body); });
Decompression is handled automagically when needed.