mirror of
https://github.com/DIYgod/RSSHub.git
synced 2026-09-24 23:12:34 +08:00
fix buffer encoding
This commit is contained in:
@@ -56,6 +56,13 @@ const custom = got.extend({
|
||||
return error;
|
||||
},
|
||||
],
|
||||
beforeRequest: [
|
||||
(options) => {
|
||||
if (options.responseType === 'buffer') {
|
||||
options.encoding = null;
|
||||
}
|
||||
},
|
||||
],
|
||||
},
|
||||
agent: agent,
|
||||
headers: {
|
||||
|
||||
Reference in New Issue
Block a user