Just copy the unzip pipe code from the proxyViaCache to makeApiCall function:
// If the api response is gzip encoded, unzip it before attempting
// any transforms.
if (resp.headers['content-encoding'] === 'gzip') {
apiRequest = apiRequest.pipe(zlib.createGunzip());
}
if (_.isArray(options.transforms)) {
apiRequest = applyTransforms(apiRequest, options.transforms, resp.headers);
}
Is this behaviour by design?
For me this fix works:
Just copy the unzip pipe code from the
proxyViaCache
tomakeApiCall
function: