diff --git a/lib/utils/axios.js b/lib/utils/axios.js index c77c4d481a..23ce8008cf 100644 --- a/lib/utils/axios.js +++ b/lib/utils/axios.js @@ -56,6 +56,13 @@ const custom = got.extend({ return error; }, ], + beforeRequest: [ + (options) => { + if (options.responseType === 'buffer') { + options.encoding = null; + } + }, + ], }, agent: agent, headers: {