We need to put zstd accpet-encoding header, but the got packge cannot handle it automatically. I tried to fix it using afterResponse like this:
response.body = Buffer.from(fzstd.decompress(response.rawBody)).toString();
But I have problem when I use responseType: 'json', my afterResponse is after the built-int json.parse. Give me some idea or a solution to have zstd?
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too