mirror of
https://github.com/DIYgod/RSSHub.git
synced 2025-12-05 12:21:31 +08:00
arraybuffer to buffer
This commit is contained in:
@@ -36,7 +36,7 @@ module.exports = async (ctx) => {
|
||||
headers: {
|
||||
Referer: pcUrl,
|
||||
},
|
||||
responseType: 'arraybuffer',
|
||||
responseType: 'buffer',
|
||||
});
|
||||
const $ = cheerio.load(iconv.decode(storyDetail.data, 'gb2312'));
|
||||
$('#articleContent img').each(function(_, item) {
|
||||
|
||||
@@ -36,7 +36,7 @@ module.exports = async (ctx) => {
|
||||
}
|
||||
|
||||
const response = await axios.get(itemUrl, {
|
||||
responseType: 'arraybuffer',
|
||||
responseType: 'buffer',
|
||||
});
|
||||
|
||||
response.data = iconv.decode(response.data, 'gbk');
|
||||
|
||||
Reference in New Issue
Block a user